diff --git a/resources/ve-cm/ve.ui.CodeMirror.init.js b/resources/ve-cm/ve.ui.CodeMirror.init.js index e87c03d5..eb41aa36 100644 --- a/resources/ve-cm/ve.ui.CodeMirror.init.js +++ b/resources/ve-cm/ve.ui.CodeMirror.init.js @@ -1,6 +1,8 @@ require( '../ext.CodeMirror.data.js' ); -if ( mw.config.get( 'extCodeMirrorConfig' ).useV6 ) { +const urlParams = new URLSearchParams( window.location.search ); + +if ( mw.config.get( 'extCodeMirrorConfig' ).useV6 || urlParams.get( 'cm6enable' ) ) { mw.loader.load( 'ext.CodeMirror.v6.visualEditor' ); } else { mw.loader.load( 'ext.CodeMirror.visualEditor' );