11 lines
452 B
PHP
11 lines
452 B
PHP
<?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>');
|
|
return true;
|
|
}
|
|
}
|