Explorar o código

:art: fix https://github.com/siyuan-note/siyuan/issues/5036

Vanessa %!s(int64=3) %!d(string=hai) anos
pai
achega
1e6545d0b9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/src/menus/protyle.ts

+ 2 - 0
app/src/menus/protyle.ts

@@ -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();
             });