This commit is contained in:
parent
171aaf5372
commit
be9d61c757
2 changed files with 12 additions and 1 deletions
|
@ -415,6 +415,13 @@ export class Breadcrumb {
|
|||
accelerator: window.siyuan.config.keymap.editor.general.wysiwyg.custom,
|
||||
click: () => {
|
||||
setEditMode(protyle, "wysiwyg");
|
||||
protyle.scroll.lastScrollTop = 0;
|
||||
fetchPost("/api/filetree/getDoc", {
|
||||
id: protyle.block.parentID,
|
||||
size: window.siyuan.config.editor.dynamicLoadBlocks,
|
||||
}, getResponse => {
|
||||
onGet({data: getResponse, protyle});
|
||||
});
|
||||
}
|
||||
}];
|
||||
editSubmenu.push({
|
||||
|
|
|
@ -113,7 +113,11 @@ export class Protyle {
|
|||
break;
|
||||
case "transactions":
|
||||
data.data[0].doOperations.forEach((item: IOperation) => {
|
||||
onTransaction(this.protyle, item, false);
|
||||
if (!this.protyle.preview.element.classList.contains("fn__none")) {
|
||||
this.protyle.preview.render(this.protyle);
|
||||
} else {
|
||||
onTransaction(this.protyle, item, false);
|
||||
}
|
||||
});
|
||||
break;
|
||||
case "readonly":
|
||||
|
|
Loading…
Add table
Reference in a new issue