From 20c75354075014af728b72874d696a16f6f0c557 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 18 Dec 2024 20:14:44 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/12209 --- app/src/protyle/wysiwyg/list.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/protyle/wysiwyg/list.ts b/app/src/protyle/wysiwyg/list.ts index b7c24237b..d13cc611b 100644 --- a/app/src/protyle/wysiwyg/list.ts +++ b/app/src/protyle/wysiwyg/list.ts @@ -83,7 +83,6 @@ export const listIndent = (protyle: IProtyle, liItemElements: Element[], range: range.collapse(false); range.insertNode(document.createElement("wbr")); liItemElements.forEach(item => { - item.classList.remove("protyle-wysiwyg--select"); item.removeAttribute("select-start"); item.removeAttribute("select-end"); }); @@ -348,7 +347,6 @@ export const listOutdent = (protyle: IProtyle, liItemElements: Element[], range: let nextElement = liItemElements[liItemElements.length - 1].nextElementSibling; let lastBlockElement = liItemElements[liItemElements.length - 1].lastElementChild.previousElementSibling; liItemElements.forEach(item => { - item.classList.remove("protyle-wysiwyg--select"); item.removeAttribute("select-start"); item.removeAttribute("select-end"); Array.from(item.children).forEach((blockElement, index) => { @@ -507,7 +505,6 @@ export const listOutdent = (protyle: IProtyle, liItemElements: Element[], range: const undoOperations: IOperation[] = []; const previousID = liItemElements[0].previousElementSibling?.getAttribute("data-node-id"); liItemElements.forEach(item => { - item.classList.remove("protyle-wysiwyg--select"); item.removeAttribute("select-start"); item.removeAttribute("select-end"); });