mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
This commit is contained in:
parent
8830a73210
commit
1e6545d0b9
1 changed files with 2 additions and 0 deletions
|
|
@ -53,6 +53,8 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
|
||||||
element.setAttribute("data-subtype", inputElement.value ? "s" : "d");
|
element.setAttribute("data-subtype", inputElement.value ? "s" : "d");
|
||||||
updateTransaction(protyle, id, nodeElement.outerHTML, oldHTML);
|
updateTransaction(protyle, id, nodeElement.outerHTML, oldHTML);
|
||||||
}
|
}
|
||||||
|
protyle.toolbar.range.selectNodeContents(element);
|
||||||
|
protyle.toolbar.range.collapse(false);
|
||||||
focusByRange(protyle.toolbar.range);
|
focusByRange(protyle.toolbar.range);
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue