From f613cab03bcff16eecd9c0b25dac99f8c0c0156f Mon Sep 17 00:00:00 2001 From: Anupam Rekha Date: Thu, 22 Sep 2016 07:30:53 -0700 Subject: [PATCH] Added a trim so that the textara when clicked did not add extra spaces and make text invisible --- mindmup-editabletable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())