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!)