mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 16:24:20 +01:00
🎨 Export preview mode supports focus use https://github.com/siyuan-note/siyuan/issues/15340
This commit is contained in:
parent
508eb93183
commit
963cbfe15f
2 changed files with 49 additions and 2 deletions
|
|
@ -184,7 +184,7 @@ export class Preview {
|
|||
}
|
||||
this.mdTimeoutId = window.setTimeout(() => {
|
||||
fetchPost("/api/export/preview", {
|
||||
id: protyle.block.parentID || protyle.options.blockId,
|
||||
id: protyle.block.id || protyle.options.blockId || protyle.block.parentID,
|
||||
}, response => {
|
||||
const oldScrollTop = protyle.preview.previewElement.scrollTop;
|
||||
protyle.preview.previewElement.innerHTML = response.data.html;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue