Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Prevent table conversions from stealing focus https://github.com/siyuan-note/siyuan/issues/14744

Daniel37d5e84d2ab4
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index a4120d063a..a075239635 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -2092,6 +2092,7 @@ export const turnEmptyParagraphsIntoTransaction = (options: {
newElement.querySelectorAll("colgroup col").forEach((item: HTMLElement) => {
item.style.minWidth = "60px";
});
+ newElement.querySelectorAll("wbr").forEach(item => item.remove());
}
return {
nodeElement,