trim for checking text editor content
This commit is contained in:
parent
4da315c497
commit
c754a4fbdd
1 changed files with 1 additions and 1 deletions
|
|
@ -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>| )*$/, '');
|
||||
|
||||
// remove custom typography (use CSS!)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue