Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit b9e333a

Browse files
committed
don't use .html() in Core.clean() function
1 parent df2e796 commit b9e333a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/js/core.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,7 @@
296296
return;
297297
}
298298

299-
// Fix #39
300-
// After deleting all content (ctrl+A and delete) in Firefox, all content is deleted and only <br> appears
301-
// To force placeholder to appear, set <p><br></p> as content of the $el
302-
303-
if (this.$el.html().trim() === '' || this.$el.html().trim() === '<br>') {
299+
if (this.$el.children().length === 0) {
304300
this.$el.html(this.templates['src/js/templates/core-empty-line.hbs']().trim());
305301
}
306302

0 commit comments

Comments
 (0)