mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-13 02:34:20 +01:00
🚨
This commit is contained in:
parent
a8f3b1762a
commit
b2ba9ace07
10 changed files with 33 additions and 36 deletions
|
|
@ -804,9 +804,9 @@ const editKeydown = (event: KeyboardEvent) => {
|
|||
if (protyle.title?.editElement.contains(range.startContainer)) {
|
||||
movePathTo([protyle.path], range);
|
||||
} else if (nodeElement && range && protyle.element.contains(range.startContainer)) {
|
||||
let selectElements = Array.from(protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select"))
|
||||
let selectElements = Array.from(protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select"));
|
||||
if (selectElements.length === 0) {
|
||||
selectElements = [nodeElement]
|
||||
selectElements = [nodeElement];
|
||||
}
|
||||
movePathTo([], undefined, (toPath) => {
|
||||
hintMoveBlock(toPath, selectElements, protyle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue