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: Refine table caption interaction states https://github.com/siyuan-note/siyuan/issues/18489
Daniel1377f77c7cae
diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scssindex d1ffa5a117..bcdd3c2f1d 100644--- a/app/src/assets/scss/protyle/_wysiwyg.scss+++ b/app/src/assets/scss/protyle/_wysiwyg.scss@@ -883,6 +883,10 @@// 导出 html 不需要编辑样式.protyle-wysiwyg[data-readonly="false"] {+ caption {+ cursor: pointer;+ }+span[data-type~="inline-math"],.protyle-action__language,.render-node:not([data-type="NodeBlockQueryEmbed"]) {@@ -938,6 +942,10 @@.protyle-wysiwyg:not([contenteditable]),.protyle-wysiwyg[data-readonly="true"] {+ caption {+ cursor: default;+ }+.img:hover .protyle-icons {display: none;}diff --git a/app/src/protyle/util/table.ts b/app/src/protyle/util/table.tsindex c799ca59e0..45c66cb1c6 100644--- a/app/src/protyle/util/table.ts+++ b/app/src/protyle/util/table.ts@@ -833,6 +833,9 @@ export const clearTableCell = (protyle: IProtyle, tableBlockElement: HTMLElement};export const updateTableTitle = (protyle: IProtyle, nodeElement: Element) => {+ if (protyle.disabled) {+ return;+ }const captionElement = nodeElement.querySelector("caption");window.siyuan.menus.menu.remove();const dialog = new Dialog({diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 768aa4bf74..d09ded6c6c 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -4105,7 +4105,7 @@ export class WYSIWYG {event.stopPropagation();}});- if (tableElement) {+ if (tableElement && !protyle.disabled) {if (hasClosestByTag(event.target, "CAPTION")) {updateTableTitle(protyle, tableElement);return;