This commit is contained in:
Vanessa
2022-11-19 11:18:35 +08:00
parent 065575214e
commit eb47e5ab68

View File

@@ -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;
}