resetting the editor after note load - not complete solution because ctrl-z will revert to initial editor state

This commit is contained in:
azivner 2017-08-28 21:41:04 -04:00
parent 169825abff
commit a2d174665b

View file

@ -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;