diff --git a/docs/integrate-amd-cross.md b/docs/integrate-amd-cross.md index 3717a4c6..efc9ed0c 100644 --- a/docs/integrate-amd-cross.md +++ b/docs/integrate-amd-cross.md @@ -8,25 +8,60 @@ 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 the editor is hosted on `www.mycdn.com`. +---- + +# Option 1: Use a data: worker URI + +* `https://www.mydomain.com/index.html`: +```html + + +``` + +---- + +# Option 2: Host on your domain a worker proxy + * `https://www.mydomain.com/index.html`: ```html ``` @@ -38,4 +73,6 @@ self.MonacoEnvironment = { importScripts('www.mycdn.com/monaco-editor/min/vs/base/worker/workerMain.js'); ``` +---- + That's it. You're good to go! :) \ No newline at end of file