mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-12-20 01:30:33 +00:00
7604581cc1
Bug: T208951 Change-Id: I64c2966b7c41d6b2b1911e2fb52e4c7364bf7964
12 lines
323 B
JavaScript
12 lines
323 B
JavaScript
( 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' );
|
|
}
|
|
} );
|
|
}() );
|