mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20: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) {
|
if (!protyle.model) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!blockElement) {
|
if (!blockElement && range) {
|
||||||
blockElement = hasClosestBlock(range.startContainer) as Element;
|
blockElement = hasClosestBlock(range.startContainer) as Element;
|
||||||
}
|
}
|
||||||
if (!blockElement) {
|
if (!blockElement) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue