mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 04:28:07 +01:00
This commit is contained in:
parent
cc79d39c7b
commit
79e7339517
1 changed files with 3 additions and 0 deletions
|
|
@ -671,6 +671,9 @@ export const focusBlock = (element: Element, parentElement?: HTMLElement, toStar
|
|||
});
|
||||
}
|
||||
if (cursorElement) {
|
||||
if (cursorElement.getAttribute("contenteditable") === "false") {
|
||||
return false;
|
||||
}
|
||||
if (cursorElement.tagName === "TABLE") {
|
||||
if (toStart) {
|
||||
cursorElement = cursorElement.querySelector("th, td");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue