@potok/editor
Advanced tools
Comparing version 3.0.7 to 3.0.8
@@ -267,3 +267,3 @@ // @flow | ||
) { | ||
updateVariables(editorView, docVariables); | ||
setTimeout(() => updateVariables(editorView, docVariables), 0); | ||
} | ||
@@ -348,11 +348,7 @@ } | ||
const plainContent = | ||
contentTopNode.innerHTML === EMPTY_EDITOR_INPUT_STRING | ||
? '' | ||
: contentTopNode.innerHTML; | ||
const plainContent = this.isEditorContentEmpty(newState) | ||
? '' | ||
: contentTopNode.innerHTML; | ||
if ( | ||
!this.isEditorContentEmpty && | ||
this.state.plainContent !== plainContent | ||
) { | ||
if (this.state.plainContent !== plainContent) { | ||
const nextState = { | ||
@@ -359,0 +355,0 @@ plainContent, |
{ | ||
"name": "@potok/editor", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "Potok.io rich text editor (based on ProseMirror)", | ||
@@ -5,0 +5,0 @@ "main": "./lib/Editor.jsx", |
75794
2418