mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-13 17:57:11 +00:00
Merge "Do not display editor on non-wikitext pages"
This commit is contained in:
commit
bb0ea17413
|
@ -11,7 +11,9 @@
|
|||
|
||||
$( function () {
|
||||
// Check if we're in the proper namespace
|
||||
if ( mw.config.get( 'wgCanonicalNamespace' ) !== 'Template' ) {
|
||||
if ( mw.config.get( 'wgCanonicalNamespace' ) !== 'Template' ||
|
||||
mw.config.get( 'wgPageContentModel' ) !== 'wikitext'
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue