mirror of https://github.com/1Panel-dev/1Panel
parent
aef163df29
commit
16d26077be
|
@ -393,17 +393,17 @@ const initEditor = () => {
|
|||
let defaultContent = '\n\n\n\n';
|
||||
editor.getModel().setValue(defaultContent);
|
||||
}
|
||||
|
||||
editor.getModel().pushEOL(config.eol);
|
||||
|
||||
editor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS, quickSave);
|
||||
|
||||
editor.onDidChangeModelContent(() => {
|
||||
if (editor) {
|
||||
form.value.content = editor.getValue();
|
||||
isEdit.value = true;
|
||||
}
|
||||
});
|
||||
|
||||
// After onDidChangeModelContent
|
||||
editor.getModel().pushEOL(config.eol);
|
||||
|
||||
editor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS, quickSave);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue