浏览代码

Merge pull request #450 from nabinhait/hotfix

trim for checking text editor content
version-14
Nabin Hait 11 年前
父节点
当前提交
d8b12a7777
共有 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() {
var html = this.editor.html() || "";
if(!strip(this.editor.text()) && !(this.editor.find("img"))) html = "";
if(!$.trim(this.editor.text()) && !(this.editor.find("img"))) html = "";
// html = html.replace(/(<br>|\s|<div><br><\/div>|&nbsp;)*$/, '');

// remove custom typography (use CSS!)


正在加载...
取消
保存