mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-15 18:29:24 +00:00
89f52f6fbb
Change-Id: I3d67837b462e0b79e124eff158bd7f88b5aaf63e
12 lines
376 B
JavaScript
12 lines
376 B
JavaScript
mw.loader.using( 'ext.visualEditor.targetLoader' ).then( function () {
|
|
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' );
|
|
}
|
|
} );
|
|
} );
|