Put $input (textarea) in the same place where cursor is (so it can follow its position nicely)

This commit is contained in:
Inez Korczynski 2011-11-29 21:32:41 +00:00
parent 165ef639bd
commit ffdf68c50b

View file

@ -23,7 +23,7 @@ es.SurfaceView = function( $container, model ) {
.addClass( 'es-surfaceView' )
.append( this.documentView.$ );
this.$input = $( '<textarea class="es-surfaceView-textarea" />' )
.prependTo( this.$ );
.appendTo( 'body' );
this.$cursor = $( '<div class="es-surfaceView-cursor"></div>' )
.appendTo( 'body' );
this.updateSelectionTimeout = undefined;