Browse Source

trim for checking text editor content

version-14
Nabin Hait 11 years ago
parent
commit
c754a4fbdd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      public/js/wn/ui/editor.js

+ 1
- 1
public/js/wn/ui/editor.js View File

@@ -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(/(<br>|\s|<div><br><\/div>|&nbsp;)*$/, '');

// remove custom typography (use CSS!)


Loading…
Cancel
Save