mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-20 11:00:52 +08:00
This commit is contained in:
parent
12ee5d5c4d
commit
98843fcd09
@ -697,7 +697,9 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||||||
}
|
}
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
} else if (nodeEditableElement?.textContent.substr(position.end + 1).indexOf("\n") === -1) {
|
} else if (nodeEditableElement?.textContent.substr(position.end + 1).indexOf("\n") === -1 &&
|
||||||
|
// table 下方为折叠块
|
||||||
|
nodeEditableElement.tagName !== "TABLE") {
|
||||||
// 下一个块是折叠块
|
// 下一个块是折叠块
|
||||||
const nextFoldElement = getNextBlock(nodeElement) as HTMLElement;
|
const nextFoldElement = getNextBlock(nodeElement) as HTMLElement;
|
||||||
if (nextFoldElement && nextFoldElement.getAttribute("fold") === "1") {
|
if (nextFoldElement && nextFoldElement.getAttribute("fold") === "1") {
|
||||||
|
Loading…
Reference in New Issue
Block a user