mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
065575214e
commit
eb47e5ab68
1 changed files with 3 additions and 1 deletions
|
|
@ -89,7 +89,9 @@ export class Toolbar {
|
||||||
return true;
|
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");
|
this.element.classList.add("fn__none");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue