An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/17051
Vanessa5b052c684065
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.tsindex 054f7f6dad..ef3da3dc99 100644--- a/app/src/menus/protyle.ts+++ b/app/src/menus/protyle.ts@@ -2222,6 +2222,7 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement:icon: "iconHeadings",label: window.siyuan.languages.title,click: () => {+ const captionElement = nodeElement.querySelector("caption");window.siyuan.menus.menu.remove();const dialog = new Dialog({title: window.siyuan.languages.table,@@ -2238,7 +2239,7 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement:<div class="fn__hr"></div><select class="b3-select fn__block"><option value="top">${window.siyuan.languages.up}</option>- <option value="bottom">${window.siyuan.languages.down}</option>+ <option value="bottom" ${captionElement?.style.captionSide === "bottom" ? "selected" : ""}>${window.siyuan.languages.down}</option></select></label></div>@@ -2255,16 +2256,15 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement:(btnsElement[1] as HTMLButtonElement).click();});inputElement.focus();- inputElement.value = nodeElement.querySelector("caption")?.textContent || "";+ inputElement.value = captionElement?.textContent || "";btnsElement[0].addEventListener("click", () => {dialog.destroy();});btnsElement[1].addEventListener("click", () => {const title = inputElement.value.trim();const location = (dialog.element.querySelector("select") as HTMLSelectElement).value;- const captionElement = nodeElement.querySelector("caption");if (title) {- const html = `<caption contenteditable="false" ${location === "bottom" ? "caption-side: bottom;" : ""}>${Lute.EscapeHTMLStr(title)}</caption>`;+ const html = `<caption contenteditable="false" ${location === "bottom" ? 'style="caption-side: bottom;"' : ""}>${Lute.EscapeHTMLStr(title)}</caption>`;if (captionElement) {captionElement.outerHTML = html;} else {