mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "Only enable VisualDiff on VE-supported content models"
This commit is contained in:
commit
400e207e5a
|
@ -92,6 +92,11 @@ class VisualEditorHooks {
|
|||
return;
|
||||
}
|
||||
|
||||
$veConfig = ConfigFactory::getDefaultInstance()->makeConfig( 'visualeditor' );
|
||||
if ( !ApiVisualEditor::isAllowedContentType( $veConfig, $diff->getTitle()->getContentModel() ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$output->addModuleStyles( [
|
||||
'ext.visualEditor.diffPage.init.styles',
|
||||
'oojs-ui.styles.icons-alerts',
|
||||
|
|
Loading…
Reference in a new issue