mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-01 02:10:15 +01:00
This commit is contained in:
parent
c88f99646c
commit
508eb93183
33 changed files with 111 additions and 108 deletions
|
|
@ -422,7 +422,7 @@ export const fixTable = (protyle: IProtyle, event: KeyboardEvent, range: Range)
|
|||
// 表格后无内容时,按右键需新建空块
|
||||
if (event.key === "ArrowRight" && range.toString() === "" &&
|
||||
!nodeElement.nextElementSibling &&
|
||||
(cellElement === nodeElement.querySelector("table").lastElementChild.lastElementChild.lastElementChild) &&
|
||||
cellElement === nodeElement.querySelector("table").lastElementChild.lastElementChild.lastElementChild &&
|
||||
getSelectionOffset(cellElement, protyle.wysiwyg.element, range).start === cellElement.textContent.length) {
|
||||
event.preventDefault();
|
||||
insertEmptyBlock(protyle, "afterend", nodeElement.getAttribute("data-node-id"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue