Skip to content

Commit

Permalink
🎨 #13391
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Dec 9, 2024
1 parent 57d521c commit 8f59465
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/src/protyle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {setPanelFocus} from "../layout/util";
/// #endif
import {Title} from "./header/Title";
import {Background} from "./header/Background";
import {onGet, setReadonlyByConfig} from "./util/onGet";
import {disabledProtyle, enableProtyle, onGet, setReadonlyByConfig} from "./util/onGet";
import {reloadProtyle} from "./util/reload";
import {renderBacklink} from "./wysiwyg/renderBacklink";
import {setEmpty} from "../mobile/util/setEmpty";
Expand Down Expand Up @@ -455,4 +455,12 @@ export class Protyle {
public focusBlock(element: Element, toStart = true) {
return focusBlock(element, undefined, toStart);
}

public disable() {
disabledProtyle(this.protyle);
}

public enable() {
enableProtyle(this.protyle);
}
}

0 comments on commit 8f59465

Please sign in to comment.