We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a4626 commit a6fb6e6Copy full SHA for a6fb6e6
src/angular-froala.js
@@ -48,8 +48,8 @@ value('froalaConfig', {})
48
};
49
50
ngModel.$isEmpty = function (value) {
51
- var isEmpty = jQuery(jQuery.parseHTML(value)).text().trim().length <= 0;
52
- return isEmpty;
+ var isEmpty = element.froalaEditor('node.isEmpty', jQuery('<div>' + value + '</div>').get(0));
+ return isEmpty;
53
54
55
0 commit comments