diff --git a/src/editor.js b/src/editor.js index 92079ad..c5872ab 100644 --- a/src/editor.js +++ b/src/editor.js @@ -531,7 +531,7 @@ function createHTML(options = {}) { content.oninput = function (_ref) { // var firstChild = _ref.target.firstChild; if ((anchorNode === void 0 || anchorNode === content) && queryCommandValue(formatBlock) === ''){ - if ( !compositionStatus ){ + if ( !compositionStatus || anchorNode === content){ formatParagraph(true); paragraphStatus = 0; } else {