mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-27 15:40:00 +00:00
Merge "ve.ui.CodeMirror.init: make cm6enable=1 query param work for 2017 editor"
This commit is contained in:
commit
23325fe19b
|
@ -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' );
|
||||
|
|
Loading…
Reference in a new issue