mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
clear history in the code mirror after setting a value, closes #766
This commit is contained in:
@@ -77,6 +77,7 @@ export default class CodeTypeWidget extends TypeWidget {
|
||||
// CodeMirror breaks pretty badly on null so even though it shouldn't happen (guarded by consistency check)
|
||||
// we provide fallback
|
||||
this.codeEditor.setValue(noteComplement.content || "");
|
||||
this.codeEditor.clearHistory();
|
||||
|
||||
const info = CodeMirror.findModeByMIME(note.mime);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user