Index: lams_central/web/includes/javascript/ckconfig_custom.js =================================================================== diff -u -rd8fc956784e11bbceaf2ceb984ab1013d361e3de -r162784e5aec3a88d7e9454a05502976b920d53a4 --- lams_central/web/includes/javascript/ckconfig_custom.js (.../ckconfig_custom.js) (revision d8fc956784e11bbceaf2ceb984ab1013d361e3de) +++ lams_central/web/includes/javascript/ckconfig_custom.js (.../ckconfig_custom.js) (revision 162784e5aec3a88d7e9454a05502976b920d53a4) @@ -137,7 +137,6 @@ CKEDITOR.config.removePlugins = 'elementspath,about,specialchar'; CKEDITOR.config.allowedContent = true; CKEDITOR.config.toolbarCanCollapse = true; -CKEDITOR.config.embed_provider = '//ckeditor.iframe.ly/api/oembed?url={url}&callback={callback}'; //default URL for 'embed' plugin CKEDITOR.config.filebrowserUploadMethod = 'form'; //allow empty i and span tags (for font awesome) CKEDITOR.dtd.$removeEmpty['i'] = false; @@ -205,3 +204,20 @@ placeholderLessenHandler(event.editor); }); }); + +CKEDITOR.config.embed_provider = '//ckeditor.iframe.ly/api/oembed?url={url}&callback={callback}'; //default URL for 'embed' plugin +/* If you want to use LAMS embedding proxy: +Set +CKEDITOR.config.embed_provider = '/lams/embed.do?url={url}&callback={callback}'; +You can use absolute URL instead, for example +CKEDITOR.config.embed_provider = 'https://demo.lamsfoundation.org/lams/embed.do?url={url}&callback={callback}'; + +Then set the real embed provider URL into this property +lams_embed_provider = '//ckeditor.iframe.ly/api/oembed?consent=0'; +For iframely remember to use "consent=0" parameter, otherwise each user will be asked whether to trust this content. +You can also append your API key: +lams_embed_provider = '//ckeditor.iframe.ly/api/oembed?consent=0&api_key=YOUR_API_KEY_HERE'; + +Then put a comma-separated list of domains for which you want to use LAMS embedding, for example +lams_embed_custom_domains = 'video.someuni.ac.uk,media.anotheruni.sg'; +*/ \ No newline at end of file