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 () {
|
editor.on('Paste Change input Undo Redo', function () {
|
||||||
clearTimeout(editorChangeHandlerId);
|
clearTimeout(editorChangeHandlerId);
|
||||||
|
const html = editor.getContent();
|
||||||
|
|
||||||
editorChangeHandlerId = setTimeout(function () {
|
editorChangeHandlerId = setTimeout(function () {
|
||||||
console.log('changed');
|
|
||||||
const html = editor.getContent();
|
|
||||||
if (onChange) {
|
if (onChange) {
|
||||||
onChange(html);
|
onChange(html);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user