mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Use editfont (monospace by default) for ReplyWidget
Change-Id: I6ebcb02402526044c5aac135d57276f23589579e
This commit is contained in:
parent
f64ecd9904
commit
723622ab5c
|
@ -78,7 +78,9 @@
|
|||
"messages": [],
|
||||
"dependencies": [
|
||||
"ext.discussionTools.init",
|
||||
"oojs-ui-core"
|
||||
"oojs-ui-core",
|
||||
"mediawiki.editfont.styles",
|
||||
"mediawiki.user"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
@ -15,7 +15,12 @@ mw.dt.ui.ReplyWidget = function ( comment, config ) {
|
|||
|
||||
this.textWidget = new OO.ui.MultilineTextInputWidget( $.extend( {
|
||||
rows: 3,
|
||||
autosize: true
|
||||
autosize: true,
|
||||
// The following classes can be used here:
|
||||
// * mw-editfont-monospace
|
||||
// * mw-editfont-sans-serif
|
||||
// * mw-editfont-serif
|
||||
classes: [ 'mw-editfont-' + mw.user.options.get( 'editfont' ) ]
|
||||
}, config ) );
|
||||
this.replyButton = new OO.ui.ButtonWidget( {
|
||||
flags: [ 'primary', 'progressive' ],
|
||||
|
|
Loading…
Reference in a new issue