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

How to enable or deactivate ckeditor for label component? #76

Closed
kla-ko opened this issue Dec 11, 2023 · 1 comment
Closed

How to enable or deactivate ckeditor for label component? #76

kla-ko opened this issue Dec 11, 2023 · 1 comment

Comments

@kla-ko
Copy link

kla-ko commented Dec 11, 2023

I have integrated the ckeditor-plugin via <script src="https://unpkg.com/grapesjs-plugin-ckeditor"></script> in my html head. Works fine for the standard text component and others. When using the label component from grapesjs-plugin-forms, I'm getting an error when trying to enter the label text.

It's the same issue as described in #71 . However, I don't know how to apply the there mentioned fix, because I'm just declaring the plugin grapesjs-plugin-ckeditor and I have no access to a variable called CKEDITOR, which would allow me to set CKEDITOR.dtd.$editable.span = 1.

Any ideas? I'd be fine with deactivating ckeditor for the label component and use the standard text editor.

Regards,

@kla-ko
Copy link
Author

kla-ko commented Dec 11, 2023

Found a solution: I can access window.CKEDITOR and set window.CKEDITOR.dtd.$editable.label = 1.

@kla-ko kla-ko closed this as completed Dec 11, 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

No branches or pull requests

1 participant