Trim spaces to save on database.

This commit is contained in:
Matias De lellis
2019-08-15 09:12:19 -03:00
parent ac22e7f206
commit 189d0be3d7

View File

@@ -275,7 +275,6 @@ View.prototype = {
}, },
250, 250,
function () { function () {
MediumEditor.selection.clearSelection(document, false);
modalcontent.focus(); modalcontent.focus();
} }
); );
@@ -287,8 +286,8 @@ View.prototype = {
if (id === -1) if (id === -1)
return; return;
var title = $('#modal-note-div #title-editable').html(); var title = $('#modal-note-div #title-editable').html().trim();
var content = $('#modal-note-div #content-editable').html(); var content = $('#modal-note-div #content-editable').html().trim();
var color = this.colorToHex($("#modal-note-div .quicknote").css("background-color")); var color = this.colorToHex($("#modal-note-div .quicknote").css("background-color"));
/* /*