diff --git a/static/js/note.js b/static/js/note.js index b3a642ef0..a1c32f8cc 100644 --- a/static/js/note.js +++ b/static/js/note.js @@ -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;