mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Merge "Add ime-position-inside ULS class to reply widgets"
This commit is contained in:
commit
377a1159ae
|
@ -66,6 +66,9 @@ CommentTargetWidget.prototype.setDocument = function ( docOrHtml ) {
|
||||||
this.getSurface().getView().$element.removeClass( 'mw-body-content' );
|
this.getSurface().getView().$element.removeClass( 'mw-body-content' );
|
||||||
this.getSurface().$placeholder.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
|
// HACK
|
||||||
this.getSurface().authors = this.authors;
|
this.getSurface().authors = this.authors;
|
||||||
};
|
};
|
||||||
|
|
|
@ -22,7 +22,7 @@ OO.inheritClass( ReplyWidgetPlain, require( 'ext.discussionTools.ReplyWidget' )
|
||||||
/* Methods */
|
/* Methods */
|
||||||
|
|
||||||
ReplyWidgetPlain.prototype.createReplyBodyWidget = function ( config ) {
|
ReplyWidgetPlain.prototype.createReplyBodyWidget = function ( config ) {
|
||||||
return new OO.ui.MultilineTextInputWidget( $.extend( {
|
var textInput = new OO.ui.MultilineTextInputWidget( $.extend( {
|
||||||
rows: 3,
|
rows: 3,
|
||||||
// TODO: Fix upstream to support a value meaning no max limit (e.g. Infinity)
|
// TODO: Fix upstream to support a value meaning no max limit (e.g. Infinity)
|
||||||
maxRows: 999,
|
maxRows: 999,
|
||||||
|
@ -33,6 +33,9 @@ ReplyWidgetPlain.prototype.createReplyBodyWidget = function ( config ) {
|
||||||
// * mw-editfont-serif
|
// * mw-editfont-serif
|
||||||
classes: [ 'mw-editfont-' + mw.user.options.get( 'editfont' ) ]
|
classes: [ 'mw-editfont-' + mw.user.options.get( 'editfont' ) ]
|
||||||
}, config ) );
|
}, config ) );
|
||||||
|
// Fix jquery.ime position (T255191)
|
||||||
|
textInput.$input.addClass( 'ime-position-inside' );
|
||||||
|
return textInput;
|
||||||
};
|
};
|
||||||
|
|
||||||
ReplyWidgetPlain.prototype.focus = function () {
|
ReplyWidgetPlain.prototype.focus = function () {
|
||||||
|
|
Loading…
Reference in a new issue