editor-element-conflict when using simple_form helper
yourtallness opened this issue · comments
For all inputs converted to ckeditor via the simple_form helper (`as: :ckeditor), I get:
editor-element-conflict
It appears to be getting initialized twice.
Please advise.
Loading ckeditor from CDN:
//cdn.ckeditor.com/4.14.1/standard/ckeditor.js
Gem version: 5.1.0
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm having the same issue (simple_form, ckeditor gem 5.1.0 loading from CDN). Did you ever find a solution?
Same thing here - gem 5.1.0, loading from CDN //cdn.ckeditor.com/4.15.0/basic/ckeditor.js
+1
I'm guessing it has something to do with where CK is initialized. Moving it from inside <head>
to right before </body>
fixes the error, but seems to ignore app/assets/javascripts/ckeditor/config.js
and my toolbar settings.
We also ran into this. Did anyone managed to fix this for them?
using it with version 4.17.1 basic
[CKEDITOR] Error code: editor-element-conflict.
Object { editorName: "note_text" }
ckeditor.js:21:171
<anonymous> https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:21
q https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:10
fire https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:12
error https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:20
_getEditorElement https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:295
a https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:368
replace https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:373
replaceAll https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:374
<anonymous> https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:377
b https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:7
a https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:7
(Async: EventListener.handleEvent)
domReady https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:7
<anonymous> https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:18
<anonymous> https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:19
<anonymous> https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:19
<anonymous> https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:1299
[CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#editor-element-conflict ckeditor.js:21:266
<anonymous> https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:21
q https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:10
fire https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:12
error https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:20
_getEditorElement https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:295
a https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:368
replace https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:373
replaceAll https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:374
<anonymous> https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:377
b https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:7
a https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:7
(Async: EventListener.handleEvent)
domReady https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:7
<anonymous> https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:18
<anonymous> https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:19
<anonymous> https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:19
<anonymous> https://cdn.ckeditor.com/4.17.1/standard/ckeditor.js:1299
@davelens Same issue. Error goes away, but config is ignored.
I see the config defaults to standard 4.11.3:
Line 78 in 8200ccd
I had originally set my cdn_url
to "//cdn.ckeditor.com/4.17.1/basic/ckeditor.js"
and this throws an error. If I don't set the cdn_url
and let it use the default (4.11.3), then I no longer have any loading issues and my custom config is loaded.
@galetahub This issue might need to be reopened to deal with the loading issue when using a custom cd_url
.