grapesjs-plugin-ckeditor icon indicating copy to clipboard operation
grapesjs-plugin-ckeditor copied to clipboard

CKeditor4 issue with Enter new line + press enter

Open GoodPHP opened this issue 3 years ago • 0 comments

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.

GoodPHP avatar Sep 09 '21 15:09 GoodPHP