mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02: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
@ -162,6 +162,9 @@ function loadNote(noteId) {
|
|||||||
|
|
||||||
noteChangeDisabled = true;
|
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);
|
$('#noteDetail').summernote('code', noteText);
|
||||||
|
|
||||||
document.location.hash = noteId;
|
document.location.hash = noteId;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user