r105219 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105218‎ | r105219 | r105220 >
Date:20:32, 5 December 2011
Author:inez
Status:deferred
Tags:
Comment:
Use getContentText method to get text of selection
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
@@ -78,7 +78,7 @@
7979 // Respond to selection changes
8080 _this.updateSelection();
8181 if ( selection.getLength() ) {
82 - _this.$input.val('#COPY#').select();
 82+ _this.$input.val( _this.documentView.model.getContentText( selection ) ).select();
8383 _this.clearInsertionAnnotations();
8484 } else {
8585 _this.$input.val('').select();

Status & tagging log