From f4b91dd8c91e81cb2af6e99b66b26b1f7d3db68d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 14 Feb 2023 18:51:44 +0800 Subject: [PATCH] :lipstick: fix https://github.com/siyuan-note/siyuan/issues/7365 --- app/src/menus/protyle.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index 1e9f69be5..f0254249c 100644 --- a/app/src/menus/protyle.ts +++ b/app/src/menus/protyle.ts @@ -699,7 +699,7 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText const html = nodeElement.outerHTML; const linkAddress = linkElement.getAttribute("data-href"); window.siyuan.menus.menu.append(new MenuItem({ - label: `
`, + label: `
`, bind(element) { const inputElement = element.querySelector("textarea"); inputElement.value = linkAddress || ""; @@ -719,7 +719,7 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText } }).element); window.siyuan.menus.menu.append(new MenuItem({ - label: `
`, + label: `
`, bind(element) { const inputElement = element.querySelector("textarea"); // https://github.com/siyuan-note/siyuan/issues/6798 @@ -761,7 +761,7 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText } }).element); window.siyuan.menus.menu.append(new MenuItem({ - label: `
`, + label: `
`, bind(element) { const inputElement = element.querySelector("textarea"); inputElement.value = Lute.UnEscapeHTMLStr(linkElement.getAttribute("data-title") || "");