mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-12-12 06:15:27 +00:00
3be6ae4b12
Change-Id: I5a390c5621cefce1b396831654d54a74d0a63e9f
11 lines
370 B
JavaScript
11 lines
370 B
JavaScript
mw.loader.using( 'ext.visualEditor.targetLoader' ).then( function () {
|
|
mw.libs.ve.targetLoader.addPlugin( function () {
|
|
var target = ve.init.mw.DesktopArticleTarget;
|
|
|
|
if ( target ) {
|
|
var index = target.static.actionGroups[ 1 ].include.indexOf( 'changeDirectionality' );
|
|
target.static.actionGroups[ 1 ].include.splice( index, 0, 'codeMirror' );
|
|
}
|
|
} );
|
|
} );
|