mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 22:44:06 +01:00
This commit is contained in:
parent
b87510558c
commit
4ccee1a4d8
5 changed files with 43 additions and 15 deletions
|
|
@ -115,7 +115,7 @@ export const initFramework = () => {
|
|||
editIconElement.setAttribute("xlink:href", "#iconEdit");
|
||||
}
|
||||
editElement.addEventListener(getEventName(), () => {
|
||||
window.siyuan.config.editor.readOnly = editIconElement.getAttribute("xlink:href") === "#iconEdit";
|
||||
window.siyuan.config.editor.readOnly = !window.siyuan.config.editor.readOnly;
|
||||
fetchPost("/api/setting/setEditor", window.siyuan.config.editor);
|
||||
});
|
||||
document.getElementById("toolbarSync").addEventListener(getEventName(), () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue