🎨 Export preview mode supports focus use https://github.com/siyuan-note/siyuan/issues/15340

This commit is contained in:
Daniel 2025-07-23 17:00:29 +08:00
parent 508eb93183
commit 963cbfe15f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 49 additions and 2 deletions

View file

@ -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;