mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-24 10:48:42 +00:00
Merge "Enable spellchecking on media caption inputs"
This commit is contained in:
commit
a5a3b0c97a
|
@ -129,7 +129,8 @@ ve.ui.MWGalleryDialog.prototype.initialize = function () {
|
|||
// TODO: make into a ve.ui.MWTargetWidget once Parsoid handles galleries
|
||||
this.highlightedCaptionInput = new OO.ui.MultilineTextInputWidget( {
|
||||
placeholder: ve.msg( 'visualeditor-mwgallerydialog-image-caption-placeholder' ),
|
||||
autosize: true
|
||||
autosize: true,
|
||||
spellcheck: true
|
||||
} );
|
||||
this.highlightedCaptionFieldset = new OO.ui.FieldsetLayout( {
|
||||
label: ve.msg( 'visualeditor-dialog-media-content-section' ),
|
||||
|
@ -181,7 +182,8 @@ ve.ui.MWGalleryDialog.prototype.initialize = function () {
|
|||
}
|
||||
} );
|
||||
this.captionInput = new OO.ui.TextInputWidget( {
|
||||
placeholder: ve.msg( 'visualeditor-mwgallerydialog-caption-input-placeholder' )
|
||||
placeholder: ve.msg( 'visualeditor-mwgallerydialog-caption-input-placeholder' ),
|
||||
spellcheck: true
|
||||
} );
|
||||
this.widthsInput = new OO.ui.NumberInputWidget( {
|
||||
min: 0,
|
||||
|
|
|
@ -261,7 +261,7 @@ ve.ui.MWMediaDialog.prototype.initialize = function () {
|
|||
icon: 'parameter'
|
||||
} );
|
||||
|
||||
this.altTextInput = new OO.ui.TextInputWidget();
|
||||
this.altTextInput = new OO.ui.TextInputWidget( { spellcheck: true } );
|
||||
|
||||
this.altTextInput.$element.addClass( 've-ui-mwMediaDialog-altText' );
|
||||
|
||||
|
|
Loading…
Reference in a new issue