zhangchao 4 年前
父节点
当前提交
81196bf8e1
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0
    1
      src/editor.html

+ 0
- 1
src/editor.html 查看文件

@@ -1658,7 +1658,6 @@
1658 1658
 			var contentIsEmpty = true;
1659 1659
 			zss_editor.setOnChangeEmptyOrNot = function() {
1660 1660
 				$('#zss_editor_content').on('input', function() {
1661
-					this.textContent = this.textContent || ''
1662 1661
 					var textContentLength = this.textContent.trim().length - document.querySelectorAll(".caret_placeholder").length;
1663 1662
 					if (textContentLength < 1 && document.querySelectorAll('img, li').length === 0 && !contentIsEmpty) {
1664 1663
 						contentIsEmpty = true;