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/15161

Vanessa9559d8ba8f1b
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index b1b0b5c338..0852fb68d5 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -624,12 +624,12 @@ export class WYSIWYG {
if (galleryItemElement) {
return;
}
-
+ const avDragFillElement = hasClosestByClassName(target, "av__drag-fill");
// https://github.com/siyuan-note/siyuan/issues/3026
hideElements(["select"], protyle);
if (hasClosestByAttribute(target, "data-type", "av-gallery-more")) {
clearSelect(["img", "row", "cell"], protyle.wysiwyg.element);
- } else if (!hasClosestByClassName(target, "av__firstcol")) {
+ } else if (!hasClosestByClassName(target, "av__firstcol") && !avDragFillElement) {
clearSelect(["img", "av"], protyle.wysiwyg.element);
}
@@ -698,7 +698,6 @@ export class WYSIWYG {
return;
}
// av drag fill
- const avDragFillElement = hasClosestByClassName(target, "av__drag-fill");
if (!protyle.disabled && avDragFillElement) {
if (!nodeElement) {
return;