mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 11:58:49 +01:00
This commit is contained in:
parent
4b940c765c
commit
70d615d66a
1 changed files with 0 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue