Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/12209

Vanessa20c753540750
diff --git a/app/src/protyle/wysiwyg/list.ts b/app/src/protyle/wysiwyg/list.ts
index b7c24237be..d13cc611bd 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");
});