diff --git a/src/public/javascripts/note_editor.js b/src/public/javascripts/note_editor.js index 84e3a1fa1..f55962f58 100644 --- a/src/public/javascripts/note_editor.js +++ b/src/public/javascripts/note_editor.js @@ -77,13 +77,15 @@ const noteEditor = (function() { function updateNoteFromInputs(note) { if (note.detail.type === 'text') { - note.detail.content = editor.getData(); + let content = editor.getData(); // if content is only tags/whitespace (typically

 

), then just make it empty // this is important when setting new note to code - if (jQuery(note.detail.content).text().trim() === '') { - note.detail.content = '' + if (jQuery(content).text().trim() === '' && !content.includes("