From d47e52e60aa39ea24b148dd008176f2ead638369 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 28 Aug 2023 11:32:27 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9029 --- app/src/protyle/render/highlightRender.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/render/highlightRender.ts b/app/src/protyle/render/highlightRender.ts index 1399bdcc5..5bc7d33a3 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"; }