diff --git a/mindmup-editabletable.js b/mindmup-editabletable.js index 36be540..f1ba143 100644 --- a/mindmup-editabletable.js +++ b/mindmup-editabletable.js @@ -15,7 +15,7 @@ $.fn.editableTableWidget = function (options) { showEditor = function (select) { active = element.find('td:focus'); if (active.length) { - editor.val(active.text()) + editor.val($.trim(active.text())) .removeClass('error') .show() .offset(active.offset())