mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +01:00
Fixes smoke test
This commit is contained in:
parent
0fc7695423
commit
1a974d5402
1 changed files with 0 additions and 13 deletions
|
|
@ -6,7 +6,6 @@
|
|||
<body>
|
||||
<div id="editor-container" style="position: absolute; width: 500px; height: 400px"></div>
|
||||
<script src="../../../out/monaco-editor/dev/vs/loader.js"></script>
|
||||
|
||||
<script>
|
||||
require.config({
|
||||
baseUrl: new URL('..', document.baseURI).toString(),
|
||||
|
|
@ -14,20 +13,8 @@
|
|||
vs: '../../../out/monaco-editor/dev/vs'
|
||||
}
|
||||
});
|
||||
require.config({
|
||||
'vs/nls': {
|
||||
availableLanguages: {
|
||||
'*': 'de'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
require(['vs/editor/editor.main'], () => {
|
||||
window.monacoAPI = monaco;
|
||||
monaco.editor.create(document.getElementById('editor-container'), {
|
||||
value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'),
|
||||
language: 'javascript'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue