mediawiki-extensions-CodeMi.../resources/modules/ve-cm/ve.ui.CodeMirror.init.js

12 lines
346 B
JavaScript
Raw Normal View History

( function ( ve, mw ) {
mw.libs.ve.targetLoader.addPlugin( function () {
var index,
target = ve.init.mw.DesktopArticleTarget;
if ( target ) {
index = target.static.actionGroups[ 1 ].include.indexOf( 'changeDirectionality' );
target.static.actionGroups[ 1 ].include.splice( index, 0, 'codeMirror' );
}
} );
}( ve, mediaWiki ) );