blob: 660a14fb012c1933b0d60e18df9638a83b2bb9d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/*
* JavaScript for WikiEditor Template Editor
*/
( function ( mw, $ ) {
$( document ).ready( function () {
// Disable in template namespace
if ( mw.config.get( 'wgNamespaceNumber' ) === 10 ) {
return true;
}
// Add template editor module
$( 'textarea#wpTextbox1' ).wikiEditor( 'addModule', 'templateEditor' );
} );
}( mediaWiki, jQuery ) );
|