Index: trunk/extensions/VisualEditor/modules/es/views/es.ContentView.js |
— | — | @@ -625,7 +625,7 @@ |
626 | 626 | // This is very important for lists |
627 | 627 | if(this.model.getContentLength() === 0) { |
628 | 628 | var $line = $( '<div class="es-contentView-line" line-index="0"> </div>' ); |
629 | | - this.$.empty().append( $line ); |
| 629 | + this.$.remove( '.es-contentView-line' ).append( $line ); |
630 | 630 | this.lines = [{ |
631 | 631 | 'text': ' ', |
632 | 632 | 'range': new es.Range( 0,0 ), |