This commit is contained in:
Vanessa 2022-08-10 11:28:57 +08:00
parent 5acdc1f3c7
commit 522d2dc465

View file

@ -254,7 +254,7 @@ export const pushBack = (protyle: IProtyle, range?: Range, blockElement?: Elemen
if (!protyle.model) {
return;
}
if (!blockElement) {
if (!blockElement && range) {
blockElement = hasClosestBlock(range.startContainer) as Element;
}
if (!blockElement) {