Index: trunk/extensions/VisualEditor/modules/es/views/es.ContentView.js |
— | — | @@ -625,7 +625,11 @@ |
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.$.remove( '.es-contentView-line' ).append( $line ); |
| 629 | + this.$ |
| 630 | + .children() |
| 631 | + .remove( '.es-contentView-line' ) |
| 632 | + .end() |
| 633 | + .append( $line ); |
630 | 634 | this.lines = [{ |
631 | 635 | 'text': ' ', |
632 | 636 | 'range': new es.Range( 0,0 ), |