Merge "ve.ui.CodeMirror.init: make cm6enable=1 query param work for 2017 editor"

This commit is contained in:
jenkins-bot 2024-09-05 03:32:46 +00:00 committed by Gerrit Code Review
commit 23325fe19b

View file

@ -1,6 +1,8 @@
require( '../ext.CodeMirror.data.js' ); 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' ); mw.loader.load( 'ext.CodeMirror.v6.visualEditor' );
} else { } else {
mw.loader.load( 'ext.CodeMirror.visualEditor' ); mw.loader.load( 'ext.CodeMirror.visualEditor' );