|
@@ -123,8 +123,10 @@ bsEditor = Class.extend({ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
clean_html: function() { |
|
|
clean_html: function() { |
|
|
|
|
|
|
|
|
var html = this.editor.html() || ""; |
|
|
var html = this.editor.html() || ""; |
|
|
html = html.replace(/(<br>|\s|<div><br><\/div>| )*$/, ''); |
|
|
|
|
|
|
|
|
if(!strip(this.editor.text())) html = ""; |
|
|
|
|
|
// html = html.replace(/(<br>|\s|<div><br><\/div>| )*$/, ''); |
|
|
|
|
|
|
|
|
// remove custom typography (use CSS!) |
|
|
// remove custom typography (use CSS!) |
|
|
if(this.options.remove_typography) { |
|
|
if(this.options.remove_typography) { |
|
|