Skip to content

Commit 32ecf5a

Browse files
authored
Merge pull request #352 from haemie/master
fixed empty content handling causing formatting issues with compositionend
2 parents d5345d6 + 40a2192 commit 32ecf5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ function createHTML(options = {}) {
537537
content.oninput = function (_ref) {
538538
// var firstChild = _ref.target.firstChild;
539539
if ((anchorNode === void 0 || anchorNode === content) && queryCommandValue(formatBlock) === ''){
540-
if ( !compositionStatus ){
540+
if ( !compositionStatus || anchorNode === content){
541541
formatParagraph(true);
542542
paragraphStatus = 0;
543543
} else {

0 commit comments

Comments
 (0)