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

CKeditor4 issue with Enter new line + press enter #49

Open
GoodPHP opened this issue Sep 9, 2021 · 0 comments
Open

CKeditor4 issue with Enter new line + press enter #49

GoodPHP opened this issue Sep 9, 2021 · 0 comments

Comments

@GoodPHP
Copy link

GoodPHP commented Sep 9, 2021

Hi, if someone looking for solve for issue with new line.

I have solution:

CKEDITOR.on('instanceCreated', function(e) {
  e.editor.on('change', function (event) {
    const selectedText = editor.getSelected();
    editor.trigger(`component:update component:input`, selectedText);
  });
}); 

It's for update block after each changes.

yanfanvip added a commit to yanfanvip/grapesjs-plugin-ckeditor that referenced this issue Nov 6, 2021
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