mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +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
|
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>
|
<script>
|
||||||
require.config({ paths: { 'vs': 'http://www.mycdn.com/monaco-editor/min/vs' }});
|
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:
|
Create http://www.mydomain.com/monaco-editor-worker-loader-proxy.js with the following content:
|
||||||
self.MonacoEnvironment = {
|
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! :)
|
That's it. You're good to go! :)
|
||||||
-->
|
-->
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue