mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 22:44:06 +01:00
This commit is contained in:
parent
4f1e2857a7
commit
fba386be71
1 changed files with 2 additions and 2 deletions
|
|
@ -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(`<caption${location === "bottom" ? "caption-side: bottom;" : ""}>` + Lute.EscapeHTMLStr(title) + `</caption>`));
|
||||
nodeElement.setAttribute("caption", Lute.EscapeHTMLStr(html));
|
||||
} else {
|
||||
if (captionElement) {
|
||||
captionElement.remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue