diff --git a/dist/examples/iframe/child.html b/dist/examples/iframe/child.html index 36a3ff86b..9caf581e4 100644 --- a/dist/examples/iframe/child.html +++ b/dist/examples/iframe/child.html @@ -20,7 +20,8 @@ --> Rapid - + + @@ -50,10 +51,9 @@ newScript.onload = checkScript; newScript.onerror = checkScript; -// at some point, replace this with the cdn link -newScript.src = '../../rapid.js'; -// newScript.src = 'https://cdn.jsdelivr.net/npm/@rapideditor/rapid@2/dist/rapid.js'; // debug -// newScript.src = 'https://cdn.jsdelivr.net/npm/@rapideditor/rapid@2/dist/rapid.min.js'; // production + newScript.src = '../../rapid.js'; // local development +// newScript.src = 'https://cdn.jsdelivr.net/npm/@rapideditor/rapid@2/dist/rapid.js'; // CDN debug +// newScript.src = 'https://cdn.jsdelivr.net/npm/@rapideditor/rapid@2/dist/rapid.min.js'; // CDN production document.getElementsByTagName('head')[0].appendChild(newScript); @@ -65,7 +65,8 @@ } else { const context = new Rapid.Context(); context.containerNode = container; - context.assetPath = 'https://cdn.jsdelivr.net/npm/@rapideditor/rapid@2/dist/'; + context.assetPath = '../../'; // local development + // context.assetPath = 'https://cdn.jsdelivr.net/npm/@rapideditor/rapid@2/dist/'; // CDN context.buildID = ''; context.buildSHA = ''; context.buildDate = '';