mediawiki-extensions-CodeEd.../CodeEditor.hooks.php

12 lines
259 B
PHP
Raw Normal View History

<?php
class CodeEditorHooks {
public static function editPageShowEditFormInitial( &$toolbar ) {
global $wgOut, $wgTitle;
if ( $wgTitle->isCssOrJsPage() || $wgTitle->isCssJsSubpage() ) {
$wgOut->addModules( 'ext.codeEditor' );
}
return true;
}
}