mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
Roan officially does not owe the team lunch (at this precise moment)
Change-Id: I90a6198da97ea90f60d9668c21d7386984a03ff0
This commit is contained in:
parent
ffd411b5e7
commit
18461387c0
|
@ -117,6 +117,9 @@ ve.ce.TextNode.annotationRenderers = {
|
|||
*/
|
||||
ve.ce.TextNode.prototype.onUpdate = function() {
|
||||
var $new = $( $( '<span>' + this.getHtml() + '</span>' ).contents() );
|
||||
if ( $new.length === 0 ) {
|
||||
$new = $new.add( document.createTextNode( '' ) );
|
||||
}
|
||||
this.$.replaceWith( $new );
|
||||
this.$ = $new;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue