From cfc1fff791b1d2c07613bbd003713d6dbec3edd3 Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Tue, 1 Jul 2025 17:31:02 +0800 Subject: [PATCH] :art: Unable to start selection from the .protyle-action element of the code block (#14997) fix https://github.com/siyuan-note/siyuan/issues/13863 --- app/src/protyle/wysiwyg/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 27c1c7b8c..caafa4c39 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -643,7 +643,7 @@ export class WYSIWYG { clearSelect(["img", "av"], protyle.wysiwyg.element); } - if (hasClosestByClassName(target, "protyle-action") || + if ((hasClosestByClassName(target, "protyle-action") && !hasClosestByClassName(target, "code-block") )|| (hasClosestByClassName(target, "av__cell--header") && !hasClosestByClassName(target, "av__widthdrag"))) { return; }