-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add additional rtw area config #4278
Conversation
CHANGELOG.md
Outdated
@@ -5,6 +5,7 @@ | |||
### Adds | |||
|
|||
* Add `publicApiCheckAsync` wrapper method (and use it internally) to allow for async permission checks of REST APIs. This feature doesn't introduce any breaking changes. | |||
* Add ability to add custom rich-text-widget options per area. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please say just a little more here. I know there will be docs, but how about: add ability for custom tiptap extensions to access the options passed to rich text widgets at the area level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed.
@@ -546,7 +546,8 @@ export default { | |||
return (apos.tiptapExtensions || []) | |||
.map(extension => extension({ | |||
styles: this.editorOptions.styles.map(this.localizeStyle), | |||
types: this.tiptapTypes | |||
types: this.tiptapTypes, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can achieve the same goal with
aposTiptapExtensions() {
return (apos.tiptapExtensions || [])
.map(extension => extension({
...this.editorOptions,
styles: this.editorOptions.styles.map(this.localizeStyle),
types: this.tiptapTypes
}));
},
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess I overthought that a bit! 😅
## 3.55.0 | ||
|
||
### Adds | ||
|
||
* Add `publicApiCheckAsync` wrapper method (and use it internally) to allow for async permission checks of REST APIs. This feature doesn't introduce any breaking changes. | ||
* Add ability to add custom rich-text-widget options per area. | ||
* Add `publicApiCheckAsync` wrapper method (and use it internally) to allow for overrides to do async permission checks of REST APIs. This feature doesn't introduce any breaking changes because the default implementation still invokes `publicApiCheck` in case developers have overridden it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this in this PR? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR was opened before the last release date so there ended up being a merge conflict in the CHANGELOG.
Summary
Summarize the changes briefly, including which issue/ticket this resolves. If it closes an existing Github issue, include "Closes #[issue number]"
This PR extends the rich-text-widget to allow for custom options to be passed through the per area configuration. This will allow for new Tiptap extensions to pass their own configuration options. A tutorial on this subject and three new improvements to the rich-text-widget will be released to take advantage of this. This change does not alter the existing configuration behavior.
What are the specific steps to test this change?
For example:
What kind of change does this PR introduce?
(Check at least one)
Make sure the PR fulfills these requirements:
If adding a new feature without an already open issue, it's best to open a feature request issue first and wait for approval before working on it.
Other information: