소스 검색

trim for checking text editor content

version-14
Nabin Hait 11 년 전
부모
커밋
c754a4fbdd
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!)


불러오는 중...
취소
저장