Skip to content

Commit 1846138

Browse files
committed
Roan officially does not owe the team lunch (at this precise moment)
Change-Id: I90a6198da97ea90f60d9668c21d7386984a03ff0
1 parent ffd411b commit 1846138

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/ve2/ce/nodes/ve.ce.TextNode.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ ve.ce.TextNode.annotationRenderers = {
117117
*/
118118
ve.ce.TextNode.prototype.onUpdate = function() {
119119
var $new = $( $( '<span>' + this.getHtml() + '</span>' ).contents() );
120+
if ( $new.length === 0 ) {
121+
$new = $new.add( document.createTextNode( '' ) );
122+
}
120123
this.$.replaceWith( $new );
121124
this.$ = $new;
122125
};

0 commit comments

Comments
 (0)