mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-14 03:04:21 +01:00
This commit is contained in:
parent
72ed9c37f8
commit
f293fa5d26
3 changed files with 18 additions and 20 deletions
|
|
@ -617,7 +617,7 @@ export const updateOutline = (models: IModels, protyle: IProtyle, reload = false
|
|||
item.isPreview = !protyle.preview.element.classList.contains("fn__none");
|
||||
item.update(response, blockId);
|
||||
if (protyle) {
|
||||
item.updateDocTitle(protyle.background.ial, response.data?.length);
|
||||
item.updateDocTitle(protyle.background.ial, response.data?.length || 0);
|
||||
if (getSelection().rangeCount > 0) {
|
||||
const startContainer = getSelection().getRangeAt(0).startContainer;
|
||||
if (protyle.wysiwyg.element.contains(startContainer)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue