From 47bb845b1d64d0ae97f70507c7be56f2200b95bb Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 7 Jun 2024 10:37:29 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=80=89=E4=B8=AD=20html=20=E5=9D=97?= =?UTF-8?q?=E5=90=8E=E8=BE=93=E5=85=A5=E7=9A=84=E6=96=87=E5=AD=97=E4=BC=9A?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E5=9C=A8=E5=9D=97=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/wysiwyg/index.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index ab061ae89..7c8dc7050 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -1860,9 +1860,6 @@ export class WYSIWYG { isComposition = false; const range = getEditorRange(this.element); const blockElement = hasClosestBlock(range.startContainer); - if (blockElement && blockElement.getAttribute("data-type") === "NodeHTMLBlock") { - return; - } if (!blockElement) { return; } @@ -1898,10 +1895,6 @@ export class WYSIWYG { if (!blockElement) { return; } - if (blockElement && blockElement.getAttribute("data-type") === "NodeHTMLBlock") { - event.stopPropagation(); - return; - } if ([":", "(", "【", "(", "[", "{", "「", "『", "#", "/", "、"].includes(event.data)) { protyle.hint.enableExtend = true; }