Bläddra i källkod

:art: https://github.com/siyuan-note/siyuan/issues/12516

Vanessa 8 månader sedan
förälder
incheckning
736c09fc79
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/src/menus/protyle.ts

+ 1 - 1
app/src/menus/protyle.ts

@@ -991,7 +991,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
     hideElements(["util", "toolbar", "hint"], protyle);
     hideElements(["util", "toolbar", "hint"], protyle);
     const id = nodeElement.getAttribute("data-node-id");
     const id = nodeElement.getAttribute("data-node-id");
     const imgElement = assetElement.querySelector("img");
     const imgElement = assetElement.querySelector("img");
-    const titleElement = assetElement.querySelector(".protyle-action__title") as HTMLElement;
+    const titleElement = assetElement.querySelector(".protyle-action__title span") as HTMLElement;
     const html = nodeElement.outerHTML;
     const html = nodeElement.outerHTML;
     if (!protyle.disabled) {
     if (!protyle.disabled) {
         window.siyuan.menus.menu.append(new MenuItem({
         window.siyuan.menus.menu.append(new MenuItem({