Skip to content

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

:art: Clear image selection when selecting blocks https://github.com/siyuan-note/siyuan/issues/18725

Daniel8238d25b4278
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index d18649f97c..6e1904e01b 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -1120,7 +1120,7 @@ export class WYSIWYG {
setAVItemAnchor(nodeElement, rowElement as HTMLElement);
}
} else if (ctrlElement) {
- clearSelect(["row", "galleryItem"], this.element);
+ clearSelect(["img", "row", "galleryItem"], this.element);
const embedBlockElement = isInEmbedBlock(ctrlElement);
if (embedBlockElement) {
ctrlElement = embedBlockElement;