mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -89,7 +89,9 @@ export class Toolbar {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
if (hasImg && noText) {
|
||||
if ((hasImg && noText) ||
|
||||
// 拖拽图片到最右侧
|
||||
(range.commonAncestorContainer.nodeType !== 3 && (range.commonAncestorContainer as HTMLElement).classList.contains("img"))) {
|
||||
this.element.classList.add("fn__none");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user