Index: trunk/parsers/wikidom/lib/es/es.Surface.js |
— | — | @@ -234,10 +234,10 @@ |
235 | 235 | var deleteSelection = this.selection; |
236 | 236 | deleteSelection.normalize(); |
237 | 237 | this.location = this.selection.start; |
| 238 | + this.selection = new es.Selection(); |
238 | 239 | this.deleteContent( deleteSelection ); |
239 | 240 | } |
240 | 241 | var insertLocation = this.location; |
241 | | - this.selection = new es.Selection(); |
242 | 242 | this.location = new es.Location( |
243 | 243 | this.location.block, this.location.offset + val.length |
244 | 244 | ); |