-
Notifications
You must be signed in to change notification settings - Fork 103
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
CKEditor loses connection (detaches) if text component is changed (rerendered on canvas) #67
Comments
The following snippet can be used as a temporary remedy:
|
Hey @pety-dc ,
Update: The isDetached() function is indispensable if you want to enter more text after making changes to the styles. An update to CKE v. 4.21 is strongly recommended. I had only taken care of the styles and did not notice that the CK is also destroyed when the component updates itself by text input. |
Hey @michael-koeppe, I don't know what version of CKEditor do you use. However, I didn't find it in CKEditor 5. |
Hi @pety-dc, https://github.com/GrapesJS/grapesjs/tree/gh-pages The version in the repository should be 4.6.2. Many thanks in advance! |
@plomi-net AFAIK the issue that the GrapesJS canvas loses contact with the CKEditor instance when attributes of a text is edited on GrapesJS toolbar (which causes the text component to be redrawn on the canvas) is not dependent of CKeditor version. Having CKEditor version >=4.13 is only required for my suggested solution to this problem which uses the |
@pety-dc |
nice |
CKEditor toolvbar loses connection with the edited content if the text component ever gets changed (either styled or some property gets added which casuses rerendering of the text component on the canvas)
Steps to reproduce:
The text was updated successfully, but these errors were encountered: