From c754a4fbddbf75cca7efc110ebaec38bae0dd0cd Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Sun, 9 Feb 2014 18:30:09 +0530 Subject: [PATCH] trim for checking text editor content --- public/js/wn/ui/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/wn/ui/editor.js b/public/js/wn/ui/editor.js index e2574f125b..43443b0e17 100644 --- a/public/js/wn/ui/editor.js +++ b/public/js/wn/ui/editor.js @@ -125,7 +125,7 @@ bsEditor = Class.extend({ clean_html: function() { var html = this.editor.html() || ""; - if(!strip(this.editor.text()) && !(this.editor.find("img"))) html = ""; + if(!$.trim(this.editor.text()) && !(this.editor.find("img"))) html = ""; // html = html.replace(/(
|\s|

<\/div>| )*$/, ''); // remove custom typography (use CSS!)