mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-14 19:31:55 +00:00
089b73aa5d
* Moved test resource to the modules folder and registered it * Fixed tests file to use $ not $j * Cleaned up syntax in module definitions
13 lines
307 B
JavaScript
13 lines
307 B
JavaScript
/*
|
|
* JavaScript for WikiEditor Template Editor
|
|
*/
|
|
|
|
$( document ).ready( function() {
|
|
// Disable in template namespace
|
|
if ( mediaWiki.config.get( 'wgNamespaceNumber' ) == 10 ) {
|
|
return true;
|
|
}
|
|
// Add template editor module
|
|
$( 'textarea#wpTextbox1' ).wikiEditor( 'addModule', 'templateEditor' );
|
|
});
|