mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-12-01 03:17:04 +00:00
13 lines
300 B
JavaScript
13 lines
300 B
JavaScript
/*
|
|
* JavaScript for WikiEditor Template Editor
|
|
*/
|
|
|
|
$( document ).ready( function() {
|
|
// Disable in template namespace
|
|
if ( mw.config.get( 'wgNamespaceNumber' ) == 10 ) {
|
|
return true;
|
|
}
|
|
// Add template editor module
|
|
$( 'textarea#wpTextbox1' ).wikiEditor( 'addModule', 'templateEditor' );
|
|
});
|