mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 14:34:06 +01:00
This commit is contained in:
parent
3b5bd46b4e
commit
fb8d9dfde9
1 changed files with 1 additions and 1 deletions
|
|
@ -2267,7 +2267,7 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement:
|
|||
} else {
|
||||
nodeElement.querySelector("table").insertAdjacentHTML("afterbegin", html);
|
||||
}
|
||||
nodeElement.setAttribute("caption", html);
|
||||
nodeElement.setAttribute("caption", Lute.EscapeHTMLStr(`<caption${location === "bottom" ? "caption-side: bottom;" : ""}>${title}</caption>`));
|
||||
} else {
|
||||
if (captionElement) {
|
||||
captionElement.remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue