fix: bug with text being cleared when input is not manually out of focus (#377)
This commit is contained in:
@@ -56,10 +56,9 @@
|
||||
|
||||
editor.on('Paste Change input Undo Redo', function () {
|
||||
clearTimeout(editorChangeHandlerId);
|
||||
const html = editor.getContent();
|
||||
|
||||
editorChangeHandlerId = setTimeout(function () {
|
||||
console.log('changed');
|
||||
const html = editor.getContent();
|
||||
if (onChange) {
|
||||
onChange(html);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user