mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Only enable VisualDiff on VE-supported content models
Change-Id: I71ea11aaed207c4f67cfd69455b90d87e5f14498
This commit is contained in:
parent
8baf524006
commit
602b8b7782
|
@ -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