mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 22:22:34 +01:00
🎨 Supports setting titles for tables https://github.com/siyuan-note/siyuan/issues/17002
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
e7b04229c5
commit
18bf0d230d
4 changed files with 6 additions and 6 deletions
|
|
@ -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;" : ""}>${title}</caption>`));
|
||||
nodeElement.setAttribute("caption", Lute.EscapeHTMLStr(`<caption${location === "bottom" ? "caption-side: bottom;" : ""}>` + Lute.EscapeHTMLStr(title) + `</caption>`));
|
||||
} else {
|
||||
if (captionElement) {
|
||||
captionElement.remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue