fix: editorView/editorVault → state.editorView/state.editorVault dans saveFile()
This commit is contained in:
parent
0befd161e3
commit
87b6a82df8
@ -397,9 +397,9 @@ function closeEditor() {
|
||||
}
|
||||
|
||||
async function saveFile() {
|
||||
if ((!editorView && !state.fallbackEditorEl) || !editorVault || !state.editorPath) return;
|
||||
if ((!state.editorView && !state.fallbackEditorEl) || !state.editorVault || !state.editorPath) return;
|
||||
|
||||
const content = editorView ? state.editorView.state.doc.toString() : state.fallbackEditorEl.value;
|
||||
const content = state.editorView ? state.editorView.state.doc.toString() : state.fallbackEditorEl.value;
|
||||
const saveBtn = document.getElementById("editor-save");
|
||||
const originalHTML = saveBtn.innerHTML;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user