Index: trunk/parsers/wikidom/lib/es/es.Surface.js |
— | — | @@ -185,7 +185,6 @@ |
186 | 186 | var deleteSelection = surface.selection; |
187 | 187 | deleteSelection.normalize(); |
188 | 188 | surface.location = surface.selection.start; |
189 | | - surface.selection = new Selection(); |
190 | 189 | surface.deleteContent( deleteSelection ); |
191 | 190 | } |
192 | 191 | var insertLocation = surface.location; |
— | — | @@ -579,7 +578,6 @@ |
580 | 579 | if ( !location.block || !location.offset ) { |
581 | 580 | throw 'Invalid selection error. Properties for from and to locations expected.'; |
582 | 581 | } |
583 | | - this.deleteContent( this.selection ); |
584 | 582 | this.location.block.insertContent( location.offset, content ); |
585 | 583 | }; |
586 | 584 | |