mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
clear history in the code mirror after setting a value, closes #766
This commit is contained in:
parent
dc4024b6de
commit
8d45662bee
@ -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)
|
// CodeMirror breaks pretty badly on null so even though it shouldn't happen (guarded by consistency check)
|
||||||
// we provide fallback
|
// we provide fallback
|
||||||
this.codeEditor.setValue(noteComplement.content || "");
|
this.codeEditor.setValue(noteComplement.content || "");
|
||||||
|
this.codeEditor.clearHistory();
|
||||||
|
|
||||||
const info = CodeMirror.findModeByMIME(note.mime);
|
const info = CodeMirror.findModeByMIME(note.mime);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user