-
Notifications
You must be signed in to change notification settings - Fork 50
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
CKEditor4-react gives editor-element-conflict #57
Comments
also facing same issue |
Hi @f1ames , I noticed that you responded to recent issues posted for ckeditor hence tagging you, can you please take a look at the above issue if possible. Thanks! |
It seems to be a bug in integration itself, as it's present also in our docs. Fortunately there is an easy workaround: use of <CKEditor onBeforeLoad={ ( CKEDITOR ) => ( CKEDITOR.disableAutoInline = true ) } /> |
Thank you @Comandeer, the work around does the job! I have one more blocker issue with ckeditor, it is regarding easy image upload plugin. I want the images to be saved at a folder hosted by us and not use the cloud service of ckeditor. I have shared the details at https://stackoverflow.com/questions/57431210/ckeditor4-react-add-easyimage-plugin-without-cloud-url as well. |
It works for me |
how to put it in? |
worked alright, thanks 😎 |
This comment has been minimized.
This comment has been minimized.
@gkumar9 could you report a separate issue as it is not related to this thread? |
Still getting the same error even after using the onBeforeLoad prop.
I am rendering 2 instances of the above component in the same page. |
Getting this same issue without React. The workaround from @Comandeer is not successful for me. Never had it before, but turned on pasteFromWord and downloaded latest version of ckeditor.js, and now it shows up on all pages where I use the pasteFromWord plugin. It does not present the error on pages where I don't use the plugin. I haven't changed any code except to allow pasteFromWord. |
I am still facing the above issue. I think the onBeforeLoad prop is not working for me. It is not executing at all. I am still using the same code as my previous comment here but I have updated the editorUrl to version 4.14.1. I am also using the latest ckeditor4-react i.e v1.1.1. Can you please look into it? Thanks. |
I am trying to POC CKEditor for my React app, the features are working fine but I am getting an error consistently -
Even if I simply copy paste the code from "DataBinding" example shared https://ckeditor.com/docs/ckeditor4/latest/guide/dev_react.html, then also it throws an error in console. Please see attached image for reference.
Reproduction steps
1 installed ckeditor4-react
2. created TwoWayBinding.js with code from https://ckeditor.com/docs/ckeditor4/latest/guide/dev_react.html#data-binding
3. called the TwoWayBinding component in render of another empty component
Expected result
CKEditor with standard features should get rendered
Actual result
CKEditor with standard features is rendered but there are 2 errors in console pointing to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#editor-element-conflict
The render of TwoWayBinding.js is called only once. None of the existing threads on stackoverflow or git talk about "editor-element-conflict" issue with respect to react.
There is one one wrapper library present - https://www.npmjs.com/package/react-ckeditor-component, if this is used then the error does not come, but ideally I want to use the official library of CKEditor.
Kindly share the preferred solution.
Other details
The text was updated successfully, but these errors were encountered: