Skip to content

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

:memo:

Vanessa3936f3b9aa73
diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts
index 1a4ec9ea57..c2c0c67484 100644
--- a/app/src/protyle/index.ts
+++ b/app/src/protyle/index.ts
@@ -301,7 +301,7 @@ export class Protyle {
});
/// #endif
}
- resize(this.protyle);
+ resize(this.protyle); // 需等待 fullwidth 获取后设定完毕再重新计算 padding 和元素
// 需等待 getDoc 完成后再执行,否则在无页签的时候 updatePanelByEditor 会执行2次
// 只能用 focusin,否则点击表格无法执行
this.protyle.wysiwyg.element.addEventListener("focusin", () => {