mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🐛
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
Add a link
Reference in a new issue