Include wpUltimateParam when switching from VE to source editor

Bug: T199554
Change-Id: I032f822a11840ca16687322bfa051418bc7e9c06
This commit is contained in:
David Lynch 2018-08-01 22:32:29 -05:00 committed by Bartosz Dziewoński
parent 8025610b8a
commit 51beff9327

View file

@ -1862,8 +1862,11 @@ ve.init.mw.ArticleTarget.prototype.submit = function ( wikitext, fields ) {
wpStarttime: this.startTimeStamp,
wpEdittime: this.baseTimeStamp,
wpTextbox1: wikitext,
wpEditToken: this.editToken,
// MediaWiki function-verification parameters, mostly relevant to the
// classic editpage, but still required here:
wpUnicodeCheck: 'ℳ𝒲♥𝓊𝓃𝒾𝒸ℴ𝒹ℯ',
wpEditToken: this.editToken
wpUltimateParam: true
}, fields );
// Add params as hidden fields
for ( key in params ) {