-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support adding CKEditor additional plugin configuration #60
Conversation
Usage Example: ``` const customOptions = { highlight: { options: [ //... ] } }; window.ibexa.richText.CKEditor.extraOptions = customOptions ; ```
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
This should be merged to 4.2.
@@ -119,7 +119,7 @@ const VIEWPORT_TOP_OFFSET = 102; | |||
init(container) { | |||
const wrapper = this.getHTMLDocumentFragment(container.closest('.ibexa-data-source').querySelector('textarea').value); | |||
const section = wrapper.childNodes[0]; | |||
const { toolbar, extraPlugins = [] } = window.ibexa.richText.CKEditor; | |||
const { extraOptions, toolbar, extraPlugins = [] } = window.ibexa.richText.CKEditor; |
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.
const { extraOptions, toolbar, extraPlugins = [] } = window.ibexa.richText.CKEditor; | |
const { extraConfig = [], toolbar, extraPlugins = [] } = window.ibexa.richText.CKEditor; |
@@ -205,6 +205,7 @@ const VIEWPORT_TOP_OFFSET = 102; | |||
table: { | |||
contentToolbar: ['tableColumn', 'tableRow', 'mergeTableCells'], | |||
}, | |||
...extraOptions, |
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.
...extraOptions, | |
...extraConfig, |
Closing, it was implemented in #79 |
Usage Example:
TODO:
$ composer fix-cs
).