From b5607fec638e1f498b4689cf921a2ab2ff6ba5f5 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Wed, 11 Apr 2018 17:34:52 +0200 Subject: [PATCH] Fixes #795 --- docs/integrate-amd-cross.md | 63 +++++++++++++++++++++++++++++-------- 1 file changed, 50 insertions(+), 13 deletions(-) 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