From fba386be719ca8fcf75c56b9d45b367eba6caeb8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 21 Feb 2026 11:11:22 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/17002 --- app/src/menus/protyle.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index f459159d7..a086f9e9c 100644 --- a/app/src/menus/protyle.ts +++ b/app/src/menus/protyle.ts @@ -2252,7 +2252,7 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement: (btnsElement[1] as HTMLButtonElement).click(); }); inputElement.focus(); - inputElement.value = nodeElement.querySelector("caption")?.innerHTML || ""; + inputElement.value = nodeElement.querySelector("caption")?.textContent || ""; btnsElement[0].addEventListener("click", () => { dialog.destroy(); }); @@ -2267,7 +2267,7 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement: } else { nodeElement.querySelector("table").insertAdjacentHTML("afterbegin", html); } - nodeElement.setAttribute("caption", Lute.EscapeHTMLStr(`` + Lute.EscapeHTMLStr(title) + ``)); + nodeElement.setAttribute("caption", Lute.EscapeHTMLStr(html)); } else { if (captionElement) { captionElement.remove();