grapesjs-plugin-ckeditor
grapesjs-plugin-ckeditor copied to clipboard
CKeditor4 issue with Enter new line + press enter
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.