mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
1d0d1ad0c0
commit
e93fd2ba10
5 changed files with 28 additions and 139 deletions
|
|
@ -24,6 +24,7 @@ import {initMessage} from "./dialog/message";
|
|||
import {resizeDrag} from "./layout/util";
|
||||
import {getAllTabs} from "./layout/getAll";
|
||||
import {getLocalStorage} from "./protyle/util/compatibility";
|
||||
import {updateEditModeElement} from "./layout/topBar";
|
||||
|
||||
class App {
|
||||
constructor() {
|
||||
|
|
@ -45,6 +46,10 @@ class App {
|
|||
msgCallback: (data) => {
|
||||
if (data) {
|
||||
switch (data.cmd) {
|
||||
case "readonly":
|
||||
window.siyuan.config.editor.readOnly = data.data;
|
||||
updateEditModeElement();
|
||||
break;
|
||||
case "progress":
|
||||
progressLoading(data);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue