Explorar el Código

Minor fix in text editor

version-14
Nabin Hait hace 11 años
padre
commit
6402bee23f
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      public/js/wn/ui/editor.js

+ 3
- 1
public/js/wn/ui/editor.js Ver fichero

@@ -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>|&nbsp;)*$/, '');
if(!strip(this.editor.text())) html = "";
// html = html.replace(/(<br>|\s|<div><br><\/div>|&nbsp;)*$/, '');


// remove custom typography (use CSS!) // remove custom typography (use CSS!)
if(this.options.remove_typography) { if(this.options.remove_typography) {


Cargando…
Cancelar
Guardar