mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 14:06:52 +00:00
Merge "Allow a global variable to forcible enable edit check"
This commit is contained in:
commit
82e6bc5fa0
|
@ -176,7 +176,8 @@ if ( mw.config.get( 'wgVisualEditorConfig' ).editCheckTagging ) {
|
|||
if (
|
||||
( mw.config.get( 'wgVisualEditorConfig' ).editCheck && mw.editcheck.accountShouldSeeEditCheck( mw.editcheck.config.addReference ) ) ||
|
||||
// ecenable will bypass normal account-status checks as well:
|
||||
new URL( location.href ).searchParams.get( 'ecenable' )
|
||||
new URL( location.href ).searchParams.get( 'ecenable' ) ||
|
||||
!!window.MWVE_FORCE_EDIT_CHECK_ENABLED
|
||||
) {
|
||||
var saveProcessDeferred;
|
||||
mw.hook( 've.preSaveProcess' ).add( function ( saveProcess, target ) {
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
modules.push( 'ext.visualEditor.mwwikitext' );
|
||||
}
|
||||
|
||||
var editCheck = conf.editCheck || !!url.searchParams.get( 'ecenable' );
|
||||
var editCheck = conf.editCheck || !!url.searchParams.get( 'ecenable' ) || !!window.MWVE_FORCE_EDIT_CHECK_ENABLED;
|
||||
if ( conf.editCheckTagging || editCheck ) {
|
||||
modules.push( 'ext.visualEditor.editCheck' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue