Merge "Do not display editor on non-wikitext pages"

This commit is contained in:
jenkins-bot 2018-09-03 15:06:53 +00:00 committed by Gerrit Code Review
commit bb0ea17413

View file

@ -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;
}