mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
This commit is contained in:
parent
59bff8376a
commit
dc0a6fa57c
2 changed files with 2 additions and 0 deletions
|
|
@ -62,6 +62,7 @@ export class Editor extends Model {
|
|||
}
|
||||
},
|
||||
});
|
||||
// 需在 after 回调之前,否则不会聚焦 https://github.com/siyuan-note/siyuan/issues/5303
|
||||
this.editor.protyle.model = this;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -185,6 +185,7 @@ class Protyle {
|
|||
});
|
||||
}
|
||||
});
|
||||
// 需等渲染完后再回调,用于定位搜索字段 https://github.com/siyuan-note/siyuan/issues/3171
|
||||
if (mergedOptions.after) {
|
||||
mergedOptions.after(this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue