mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 12:08:03 +08:00
clear history in the code mirror after setting a value, closes #766
This commit is contained in:
parent
dc4024b6de
commit
8d45662bee
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue