mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-10 17:24:21 +01:00
🚨
This commit is contained in:
parent
f1bdb4dcfd
commit
82eafca96d
10 changed files with 14 additions and 14 deletions
|
|
@ -103,7 +103,7 @@ export const initFramework = () => {
|
|||
editIconElement.setAttribute("xlink:href", "#iconPreview");
|
||||
}
|
||||
editElement.addEventListener(getEventName(), () => {
|
||||
const isReadonly = editIconElement.getAttribute("xlink:href") === "#iconPreview"
|
||||
const isReadonly = editIconElement.getAttribute("xlink:href") === "#iconPreview";
|
||||
window.siyuan.config.editor.readOnly = isReadonly;
|
||||
fetchPost("/api/setting/setEditor", window.siyuan.config.editor, () => {
|
||||
if (!isReadonly) {
|
||||
|
|
@ -115,7 +115,7 @@ export const initFramework = () => {
|
|||
inputElement.readOnly = true;
|
||||
editIconElement.setAttribute("xlink:href", "#iconEdit");
|
||||
}
|
||||
})
|
||||
});
|
||||
});
|
||||
|
||||
scrimElement.addEventListener(getEventName(), () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue