Answers for "ckeditor 5 on blur"

0

ckeditor 5 on blur

var editor_changed = false;

editor.model.document.on('change:data', () => { editor_changed = true; });

editor.ui.focusTracker.on('change:isFocused', (evt, name, isFocused) => {
  if(!isFocused && editor_changed) {
    editor_changed = false;
    console.log(editor.getData());
  }
} );
Posted by: Guest on October-18-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language