From 3b488ebecd00650953cad89912b329e43320b170 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 12 Apr 2024 08:26:13 +0800 Subject: [PATCH] :rotating_light: --- app/src/protyle/wysiwyg/input.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts index 958d2059b..7aad13142 100644 --- a/app/src/protyle/wysiwyg/input.ts +++ b/app/src/protyle/wysiwyg/input.ts @@ -51,7 +51,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range: if (event && event.inputType === "deleteContentForward") { const wbrNextElement = hasNextSibling(wbrElement) as HTMLElement; if (wbrNextElement && wbrNextElement.nodeType === 1 && !wbrNextElement.textContent.startsWith(Constants.ZWSP)) { - const type = wbrNextElement.getAttribute("data-type").split(" ") + const type = wbrNextElement.getAttribute("data-type").split(" "); if (type.includes("code") || type.includes("kbd") || type.includes("tag")) { wbrNextElement.insertAdjacentElement("afterbegin", wbrElement); }