瀏覽代碼

ignored image for cleanup html in text editor

version-14
Akhilesh Darjee 11 年之前
父節點
當前提交
12960331d0
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      public/js/wn/ui/editor.js

+ 1
- 1
public/js/wn/ui/editor.js 查看文件

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


// remove custom typography (use CSS!) // remove custom typography (use CSS!)


Loading…
取消
儲存