diff --git a/CodeEditor.hooks.php b/CodeEditor.hooks.php index 5fc9a096..1e0cd30c 100644 --- a/CodeEditor.hooks.php +++ b/CodeEditor.hooks.php @@ -5,7 +5,7 @@ class CodeEditorHooks { global $wgCodeEditorEnableCore; // Try CSS/JS - if( $wgCodeEditorEnableCore && $title->isCssOrJsPage() ) { + if( $wgCodeEditorEnableCore && ( $title->isCssOrJsPage() || $title->isCssJsSubpage() ) ) { if( preg_match( '/\.js$/', $title->getText() ) ) return 'javascript'; if( preg_match( '/\.css$/', $title->getText() ) )