/** * Wikia change - Add modules and console in the editor in Oasis * * @param EditPage $editPage * @param Array $hidden * @return bool */ public static function onAfterDisplayingTextbox(EditPage $editPage, &$hidden) { $app = F::app(); if (!$app->checkSkin('oasis') || !$editPage instanceof EditPageLayout || $editPage->getTitle()->getNamespace() !== NS_MODULE) { return true; } $editPage->addCustomCheckbox('scribunto_ignore_errors', wfMessage('scribunto-ignore-errors')->escaped(), false); $app->wg->Out->addModules('ext.scribunto.edit'); $app->wg->Out->addHtml('<div class="wikia-scribunto-console"><div id="mw-scribunto-console"></div></div>'); return true; }