diff --git a/modules/dt-ve/CommentTargetWidget.js b/modules/dt-ve/CommentTargetWidget.js index eedb37a93..372eaa80a 100644 --- a/modules/dt-ve/CommentTargetWidget.js +++ b/modules/dt-ve/CommentTargetWidget.js @@ -66,6 +66,9 @@ CommentTargetWidget.prototype.setDocument = function ( docOrHtml ) { this.getSurface().getView().$element.removeClass( 'mw-body-content' ); this.getSurface().$placeholder.removeClass( 'mw-body-content' ); + // Fix jquery.ime position (T255191) + this.getSurface().getView().getDocument().getDocumentNode().$element.addClass( 'ime-position-inside' ); + // HACK this.getSurface().authors = this.authors; }; diff --git a/modules/dt.ui.ReplyWidgetPlain.js b/modules/dt.ui.ReplyWidgetPlain.js index 64044feaa..0a438505b 100644 --- a/modules/dt.ui.ReplyWidgetPlain.js +++ b/modules/dt.ui.ReplyWidgetPlain.js @@ -22,7 +22,7 @@ OO.inheritClass( ReplyWidgetPlain, require( 'ext.discussionTools.ReplyWidget' ) /* Methods */ ReplyWidgetPlain.prototype.createReplyBodyWidget = function ( config ) { - return new OO.ui.MultilineTextInputWidget( $.extend( { + var textInput = new OO.ui.MultilineTextInputWidget( $.extend( { rows: 3, // TODO: Fix upstream to support a value meaning no max limit (e.g. Infinity) maxRows: 999, @@ -33,6 +33,9 @@ ReplyWidgetPlain.prototype.createReplyBodyWidget = function ( config ) { // * mw-editfont-serif classes: [ 'mw-editfont-' + mw.user.options.get( 'editfont' ) ] }, config ) ); + // Fix jquery.ime position (T255191) + textInput.$input.addClass( 'ime-position-inside' ); + return textInput; }; ReplyWidgetPlain.prototype.focus = function () {