Merge "Enable spellchecking on media caption inputs"

This commit is contained in:
jenkins-bot 2017-12-12 17:04:38 +00:00 committed by Gerrit Code Review
commit a5a3b0c97a
2 changed files with 5 additions and 3 deletions

View file

@ -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,

View file

@ -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' );