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

When adding additional config i get a JS code but it does work #247

Open
johanadivare opened this issue Dec 21, 2022 · 0 comments
Open

When adding additional config i get a JS code but it does work #247

johanadivare opened this issue Dec 21, 2022 · 0 comments

Comments

@johanadivare
Copy link

When i have additional config like:

fos_ck_editor:
  default_config: my_config
  configs:
    my_config:
      language: nl
      extraPlugins:
        - 'autogrow'
        - 'youtube'
        - 'wordcount'
      autoGrow_minHeight: 500
      autoGrow_maxHeight: 500
      autoGrow_onStartup: true

I get the following JS error when rendering the template:

VM1727 ckeditor.js:19 [CKEDITOR] Error code: editor-element-conflict. {editorName: 'x'}
(anonymous) @ VM1727 ckeditor.js:19
h @ VM1727 ckeditor.js:10
(anonymous) @ VM1727 ckeditor.js:11
window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.error @ VM1727 ckeditor.js:18
CKEDITOR.editor._getEditorElement @ VM1727 ckeditor.js:280
a @ VM1727 ckeditor.js:340
CKEDITOR.replace @ VM1727 ckeditor.js:345
CKEDITOR.replaceAll @ VM1727 ckeditor.js:346
(anonymous) @ VM1727 ckeditor.js:349
b @ VM1727 ckeditor.js:7
a @ VM1727 ckeditor.js:7
VM1727 ckeditor.js:19 [CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#editor-element-conflict

But the editor renders correctly.

When i enabled jQuery it worked i got the suggestion by looking at second answer https://stackoverflow.com/questions/59158795/ckeditor-error-code-editor-element-conflict

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

No branches or pull requests

1 participant