mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
This commit is contained in:
parent
57d521cba4
commit
8f59465ca6
1 changed files with 9 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ import {setPanelFocus} from "../layout/util";
|
||||||
/// #endif
|
/// #endif
|
||||||
import {Title} from "./header/Title";
|
import {Title} from "./header/Title";
|
||||||
import {Background} from "./header/Background";
|
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 {reloadProtyle} from "./util/reload";
|
||||||
import {renderBacklink} from "./wysiwyg/renderBacklink";
|
import {renderBacklink} from "./wysiwyg/renderBacklink";
|
||||||
import {setEmpty} from "../mobile/util/setEmpty";
|
import {setEmpty} from "../mobile/util/setEmpty";
|
||||||
|
|
@ -455,4 +455,12 @@ export class Protyle {
|
||||||
public focusBlock(element: Element, toStart = true) {
|
public focusBlock(element: Element, toStart = true) {
|
||||||
return focusBlock(element, undefined, toStart);
|
return focusBlock(element, undefined, toStart);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public disable() {
|
||||||
|
disabledProtyle(this.protyle);
|
||||||
|
}
|
||||||
|
|
||||||
|
public enable() {
|
||||||
|
enableProtyle(this.protyle);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue