From 401b784903f60f2c0bbf3ccd92e0b6be643ce53b Mon Sep 17 00:00:00 2001 From: js87zz Date: Tue, 7 Apr 2020 12:22:40 +0900 Subject: [PATCH] fix: prevent to remove heading tag when press the enter key in start offset --- apps/editor/src/js/wwHeadingManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/editor/src/js/wwHeadingManager.js b/apps/editor/src/js/wwHeadingManager.js index e72cb3ab57..43830dadfc 100644 --- a/apps/editor/src/js/wwHeadingManager.js +++ b/apps/editor/src/js/wwHeadingManager.js @@ -120,8 +120,8 @@ class WwHeadingManager { const element = domUtils.createElementWith('

'); domUtils.insertBefore( - domUtils.getParentUntil(range.startContainer, this.wwe.getBody()), - element + element, + domUtils.getParentUntil(range.startContainer, this.wwe.getBody()) ); }