mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
5ff54cf7f6
Change-Id: I13f31aca84ffd953de31d5ed18c658e9620f72a1
10 lines
307 B
JavaScript
10 lines
307 B
JavaScript
require( '../ext.CodeMirror.data.js' );
|
|
|
|
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' );
|
|
}
|