fix: bug with text being cleared when input is not manually out of focus (#377)

This commit is contained in:
Iniubong Obonguko
2024-07-07 07:34:33 +01:00
committed by GitHub
parent 931ccb1a09
commit ae2fe71353
@@ -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);
}