1
0
This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
mediawiki-extensions-monaco.../MonacoEditorHooks.php

11 lines
452 B
PHP
Raw Permalink Normal View History

2020-09-20 04:35:53 +03:00
<?php
class MonacoEditorHooks {
public static function editPageShowEditFormInitial(EditPage $editpage, OutputPage $output){
$output->addHeadItem('monaco-loader', '<script type="text/javascript" src="/extensions/MonacoEditor/node_modules/monaco-editor/min/vs/loader.js"></script>');
$output->addScript('<script type="text/javascript" src="/extensions/MonacoEditor/assets/js/scripts.js" async></script>');
2020-09-20 04:35:53 +03:00
return true;
}
}