Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

arfaram
Copy link

@arfaram arfaram commented Nov 14, 2022

Usage Example:

const customOptions = {
    highlight: {
        options: [
            //...
        ]
    }
};

window.ibexa.richText.CKEditor.extraOptions =  customOptions ;

TODO:

  • Implement feature / fix a bug.
  • Implement tests.
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

Usage Example:
```
const customOptions = {
    highlight: {
        options: [
            //...
        ]
    }
};

window.ibexa.richText.CKEditor.extraOptions =  customOptions ;
```
@sonarcloud
Copy link

sonarcloud bot commented Nov 14, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@dew326 dew326 left a 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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
...extraOptions,
...extraConfig,

@dew326
Copy link
Contributor

dew326 commented May 18, 2023

Closing, it was implemented in #79

@dew326 dew326 closed this May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants