🐛
This commit is contained in:
parent
5acdc1f3c7
commit
522d2dc465
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue