From 189d0be3d70aff39633776393373b53b0bbc1146 Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Thu, 15 Aug 2019 09:12:19 -0300 Subject: [PATCH] Trim spaces to save on database. --- js/script.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/script.js b/js/script.js index 5b9f3fd..526f901 100644 --- a/js/script.js +++ b/js/script.js @@ -275,7 +275,6 @@ View.prototype = { }, 250, function () { - MediumEditor.selection.clearSelection(document, false); modalcontent.focus(); } ); @@ -287,8 +286,8 @@ View.prototype = { if (id === -1) return; - var title = $('#modal-note-div #title-editable').html(); - var content = $('#modal-note-div #content-editable').html(); + var title = $('#modal-note-div #title-editable').html().trim(); + var content = $('#modal-note-div #content-editable').html().trim(); var color = this.colorToHex($("#modal-note-div .quicknote").css("background-color")); /*