DLynch has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/391587 )

Change subject: DesktopArticleTarget: enable spellcheck on sectionTitle
......................................................................

DesktopArticleTarget: enable spellcheck on sectionTitle

Tell browsers we explicitly want spellchecking on the section title. If
unspecified this is browser-dependent, so it was inconsistent.

This won't actually have an effect until the next OOjs-UI release (v0.24.3),
as this was a new feature added to TextInputWidget.

Bug: T179654
Change-Id: I588874efcff91c5be03da2fc03c268f883b718e2
---
M modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/87/391587/1

diff --git a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js 
b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js
index 9868671..e0c0135 100644
--- a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js
+++ b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js
@@ -494,7 +494,8 @@
                                $element: $( '<h2>' ),
                                classes: [ 
've-ui-init-desktopArticleTarget-sectionTitle' ],
                                maxLength: 255,
-                               placeholder: ve.msg( 
'visualeditor-section-title-placeholder' )
+                               placeholder: ve.msg( 
'visualeditor-section-title-placeholder' ),
+                               spellcheck: true
                        } );
                        this.sectionTitle.connect( this, { change: 
'updateToolbarSaveButtonState' } );
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/391587
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I588874efcff91c5be03da2fc03c268f883b718e2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: DLynch <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to