mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
1c90c34091
commit
8468982005
6 changed files with 37 additions and 6 deletions
|
|
@ -6,6 +6,7 @@ import {setPadding} from "../protyle/ui/initUI";
|
|||
import {reloadProtyle} from "../protyle/util/reload";
|
||||
import {disabledProtyle, enableProtyle} from "../protyle/util/onGet";
|
||||
import {updateHotkeyTip} from "../protyle/util/compatibility";
|
||||
import {updateTitle} from "../dialog/processSystem";
|
||||
|
||||
export const editor = {
|
||||
element: undefined as Element,
|
||||
|
|
@ -22,6 +23,7 @@ export const editor = {
|
|||
target.setAttribute("aria-label", `${window.siyuan.languages.use} ${window.siyuan.languages.editReadonly} ${updateHotkeyTip(window.siyuan.config.keymap.general.editMode.custom)}`);
|
||||
target.querySelector("use").setAttribute("xlink:href", "#iconEdit");
|
||||
}
|
||||
updateTitle(readOnly);
|
||||
fetchPost("/api/setting/setEditor", window.siyuan.config.editor, () => {
|
||||
const allModels = getAllModels();
|
||||
allModels.editor.forEach(editor => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue