mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
This commit is contained in:
parent
a48854a166
commit
750303da7e
15 changed files with 36 additions and 30 deletions
|
|
@ -58,6 +58,7 @@ export const openMobileFileById = (app: App, id: string, action = [Constants.CB_
|
|||
action,
|
||||
render: {
|
||||
scroll: true,
|
||||
title: true,
|
||||
background: true,
|
||||
gutter: true,
|
||||
},
|
||||
|
|
@ -67,6 +68,7 @@ export const openMobileFileById = (app: App, id: string, action = [Constants.CB_
|
|||
}
|
||||
};
|
||||
if (window.siyuan.mobile.editor) {
|
||||
window.siyuan.mobile.editor.protyle.title.element.removeAttribute("data-render");
|
||||
pushBack();
|
||||
addLoading(window.siyuan.mobile.editor.protyle);
|
||||
if (window.siyuan.mobile.editor.protyle.block.rootID !== data.data.rootID) {
|
||||
|
|
@ -105,7 +107,6 @@ export const openMobileFileById = (app: App, id: string, action = [Constants.CB_
|
|||
} else {
|
||||
window.siyuan.mobile.editor = new Protyle(app, document.getElementById("editor"), protyleOptions);
|
||||
}
|
||||
(document.getElementById("toolbarName") as HTMLInputElement).value = data.data.rootTitle === window.siyuan.languages.untitled ? "" : data.data.rootTitle;
|
||||
setEditor();
|
||||
closePanel();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue