Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/9029

Vanessad47e52e60aa3
diff --git a/app/src/protyle/render/highlightRender.ts b/app/src/protyle/render/highlightRender.ts
index 1399bdcc5f..5bc7d33a3c 100644
--- a/app/src/protyle/render/highlightRender.ts
+++ b/app/src/protyle/render/highlightRender.ts
@@ -95,7 +95,7 @@ export const highlightRender = (element: Element, cdn = Constants.PROTYLE_CDN) =
// windows 需等待字体下载完成再计算,否则导致不换行,高度计算错误
// https://github.com/siyuan-note/siyuan/issues/9029
lineNumberRender(block);
- }, Constants.TIMEOUT_DBLCLICK);
+ }, block.getAttribute("contenteditable") === "true" ? 0 : Constants.TIMEOUT_DBLCLICK);
if (languageElement) {
languageElement.style.marginLeft = "3.6em";
}