mirror of
https://github.com/zadam/trilium.git
synced 2025-01-31 11:32:30 +08:00
resetting the editor after note load - not complete solution because ctrl-z will revert to initial editor state
This commit is contained in:
parent
169825abff
commit
a2d174665b
1 changed files with 3 additions and 0 deletions
|
@ -162,6 +162,9 @@ function loadNote(noteId) {
|
|||
|
||||
noteChangeDisabled = true;
|
||||
|
||||
// Clear contents and remove all stored history. This is to prevent undo from going across notes
|
||||
$('#noteDetail').summernote('reset');
|
||||
|
||||
$('#noteDetail').summernote('code', noteText);
|
||||
|
||||
document.location.hash = noteId;
|
||||
|
|
Loading…
Reference in a new issue