r104596 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104595‎ | r104596 | r104597 >
Date:21:32, 29 November 2011
Author:inez
Status:deferred
Tags:
Comment:
Put $input (textarea) in the same place where cursor is (so it can follow its position nicely)
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
@@ -23,7 +23,7 @@
2424 .addClass( 'es-surfaceView' )
2525 .append( this.documentView.$ );
2626 this.$input = $( '<textarea class="es-surfaceView-textarea" />' )
27 - .prependTo( this.$ );
 27+ .appendTo( 'body' );
2828 this.$cursor = $( '<div class="es-surfaceView-cursor"></div>' )
2929 .appendTo( 'body' );
3030 this.updateSelectionTimeout = undefined;

Status & tagging log