mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Output config var when VE disabled by hook
Currently we only disable the desktop init code when this hook returns false, but other integrations may want to know about this, e.g. MobileFrontend. Bug: T174180 Change-Id: I0268239cc9ea2d397140e617fcb6e4e104a75f31
This commit is contained in:
parent
f6994eafe4
commit
fe14ffb76b
|
@ -87,6 +87,7 @@ class Hooks {
|
|||
$services = MediaWikiServices::getInstance();
|
||||
$hookRunner = new VisualEditorHookRunner( $services->getHookContainer() );
|
||||
if ( !$hookRunner->onVisualEditorBeforeEditor( $output, $skin ) ) {
|
||||
$output->addJsConfigVars( 'wgVisualEditorDisabledByHook', true );
|
||||
return;
|
||||
}
|
||||
if ( !(
|
||||
|
|
Loading…
Reference in a new issue