diff --git a/modules/jquery.wikiEditor.js b/modules/jquery.wikiEditor.js index 0b874098..c414e192 100644 --- a/modules/jquery.wikiEditor.js +++ b/modules/jquery.wikiEditor.js @@ -486,9 +486,6 @@ if ( !context || typeof context === 'undefined' ) { .append( $( '' + mediaWiki.msg( 'wikieditor-loading' ) + '' ) .css( 'marginTop', context.$textarea.height() / 2 ) ); */ - /* Preserving cursor and focus state, which will get lost due to wrapAll */ - var hasFocus = context.$textarea.is( ':focus' ), - cursorPos = context.$textarea.textSelection( 'getCaretPosition', { startAndEnd: true } ); // Encapsulate the textarea with some containers for layout context.$textarea /* Disabling our loading div for now @@ -500,14 +497,6 @@ if ( !context || typeof context === 'undefined' ) { .wrapAll( $( '