Selaa lähdekoodia

ignored image for cleanup html in text editor

version-14
Akhilesh Darjee 11 vuotta sitten
vanhempi
commit
12960331d0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      public/js/wn/ui/editor.js

+ 1
- 1
public/js/wn/ui/editor.js Näytä tiedosto

@@ -125,7 +125,7 @@ bsEditor = Class.extend({
clean_html: function() {
var html = this.editor.html() || "";
if(!strip(this.editor.text())) html = "";
if(!strip(this.editor.text()) && !(this.editor.find("img"))) html = "";
// html = html.replace(/(<br>|\s|<div><br><\/div>|&nbsp;)*$/, '');

// remove custom typography (use CSS!)


Ladataan…
Peruuta
Tallenna