Procházet zdrojové kódy

Minor fix in text editor

version-14
Nabin Hait před 11 roky
rodič
revize
6402bee23f
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. +3
    -1
      public/js/wn/ui/editor.js

+ 3
- 1
public/js/wn/ui/editor.js Zobrazit soubor

@@ -123,8 +123,10 @@ bsEditor = Class.extend({
},

clean_html: function() {
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!)
if(this.options.remove_typography) {


Načítá se…
Zrušit
Uložit