From 70d615d66a048485270bbf4b8304eecb4fd0970a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 30 Apr 2025 10:21:37 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14720 --- app/src/protyle/wysiwyg/enter.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/src/protyle/wysiwyg/enter.ts b/app/src/protyle/wysiwyg/enter.ts index 69b59a232..b0d2a2e38 100644 --- a/app/src/protyle/wysiwyg/enter.ts +++ b/app/src/protyle/wysiwyg/enter.ts @@ -35,16 +35,6 @@ export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyle if (disableElement || // https://github.com/siyuan-note/siyuan/issues/10633 blockElement.classList.contains("table")) { - if (blockElement.parentElement.classList.contains("li")) { - const oldHTML = blockElement.parentElement.parentElement.outerHTML; - const newElement = genListItemElement(blockElement.parentElement, 0, true); - blockElement.parentElement.insertAdjacentElement("afterend", newElement); - updateTransaction(protyle, blockElement.parentElement.parentElement.getAttribute("data-node-id"), blockElement.parentElement.parentElement.outerHTML, oldHTML); - focusByWbr(newElement, range); - removeEmptyNode(newElement); - scrollCenter(protyle); - return; - } if (blockElement.classList.contains("hr")) { insertEmptyBlock(protyle, "afterend"); return;