In mobile this module is NOT present so this throws a javascript exception.
Currently a dependency is made in EditPage.php itself to add toolbar related code. This should be added as a separate module rather than an inline script.
$script = 'mw.loader.using("mediawiki.action.edit", function() {';
getEditToolbar should not run any javascript - it should simply add html that is enhanced by a javascript module. An inline script does not seem to be necessary here.
Version: 1.21.x
Severity: normal