This commit is contained in:
Vanessa 2022-05-28 20:29:02 +08:00
parent 8830a73210
commit 1e6545d0b9

View File

@ -53,6 +53,8 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
element.setAttribute("data-subtype", inputElement.value ? "s" : "d");
updateTransaction(protyle, id, nodeElement.outerHTML, oldHTML);
}
protyle.toolbar.range.selectNodeContents(element);
protyle.toolbar.range.collapse(false);
focusByRange(protyle.toolbar.range);
event.stopPropagation();
});