Skip to content

Commit

Permalink
CHG: fix isEmptyNode helper
Browse files Browse the repository at this point in the history
  • Loading branch information
farthinker committed Jul 30, 2019
1 parent 88b3e80 commit 9e992fb
Show file tree
Hide file tree
Showing 7 changed files with 228 additions and 197 deletions.
6 changes: 3 additions & 3 deletions lib/simditor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* Simditor v2.3.26
* Simditor v2.3.27
* http://simditor.tower.im/
* 2019-07-22
* 2019-07-30
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
Expand Down Expand Up @@ -1754,7 +1754,7 @@ Util = (function(superClass) {
Util.prototype.isEmptyNode = function(node) {
var $node;
$node = $(node);
return $node.is(':empty') || (!$node.text() && !$node.find(':not(br, span, div)').length);
return $node.is(':empty') || (!$node.text() && !$node.find(':not(br, span, div, b, a, strong, i, strike, font, u)').length);
};

Util.prototype.isDecoratedNode = function(node) {
Expand Down
Loading

0 comments on commit 9e992fb

Please sign in to comment.