r113326 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113325‎ | r113326 | r113327 >
Date:23:35, 7 March 2012
Author:christian
Status:deferred
Tags:
Comment:
preserve range after applying annotation
Modified paths:
  • /trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.Surface.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.Surface.js
@@ -107,8 +107,7 @@
108108
109109 this.clearPollData();
110110
111 - // show cursor
112 - _this.showCursor(range.to);
 111+ _this.showSelection( range );
113112 } else {
114113 if ( method === 'set' ) {
115114 this.addInsertionAnnotation( annotation );
@@ -638,6 +637,7 @@
639638
640639 ve.ce.Surface.prototype.handleDelete = function( backspace, isPartial ) {
641640 this.stopPolling();
 641+ this.clearPollData();
642642 var selection = this.getSelectionRange().clone(),
643643 sourceOffset,
644644 targetOffset,

Status & tagging log