mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 05:50:11 +01:00
Fix up some paths in the cross-domain example
This commit is contained in:
parent
1296453b6c
commit
0b49ac28c5
1 changed files with 4 additions and 4 deletions
|
|
@ -71,7 +71,7 @@ If you are hosting your `.js` on a different domain (e.g. on a CDN) than the HTM
|
|||
<!--
|
||||
Assuming the HTML lives on www.mydomain.com and that the editor is hosted on www.mycdn.com
|
||||
-->
|
||||
<script type="text/javascript" src="http://www.mycdn.com/monaco-editor/vs/loader.js"></script>
|
||||
<script type="text/javascript" src="http://www.mycdn.com/monaco-editor/min/vs/loader.js"></script>
|
||||
<script>
|
||||
require.config({ paths: { 'vs': 'http://www.mycdn.com/monaco-editor/min/vs' }});
|
||||
|
||||
|
|
@ -93,9 +93,9 @@ If you are hosting your `.js` on a different domain (e.g. on a CDN) than the HTM
|
|||
<!--
|
||||
Create http://www.mydomain.com/monaco-editor-worker-loader-proxy.js with the following content:
|
||||
self.MonacoEnvironment = {
|
||||
baseUrl: 'http://www.mycdn.com/monaco-editor/'
|
||||
baseUrl: 'http://www.mycdn.com/monaco-editor/min/'
|
||||
};
|
||||
importScripts('www.mycdn.com/monaco-editor/vs/base/worker/workerMain.js');
|
||||
importScripts('www.mycdn.com/monaco-editor/min/vs/base/worker/workerMain.js');
|
||||
That's it. You're good to go! :)
|
||||
-->
|
||||
```
|
||||
|
|
@ -136,4 +136,4 @@ Create a Monarch tokenizer [here](https://microsoft.github.io/monaco-editor/mona
|
|||
> A: It is an AMD loader that we use in VS Code. Yes.
|
||||
|
||||
## License
|
||||
[MIT](https://github.com/Microsoft/monaco-editor/blob/master/LICENSE.md)
|
||||
[MIT](https://github.com/Microsoft/monaco-editor/blob/master/LICENSE.md)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue