Merge branch 'develop' of https://github.com/frappe/lms into zen-mode
This commit is contained in:
@@ -210,6 +210,14 @@ export function getEditorTools() {
|
|||||||
html: `<div class="video-player" data-plyr-provider="vimeo"></div>`,
|
html: `<div class="video-player" data-plyr-provider="vimeo"></div>`,
|
||||||
id: ([id]) => id,
|
id: ([id]) => id,
|
||||||
},
|
},
|
||||||
|
cloudflareStream: {
|
||||||
|
regex: /https:\/\/customer-[a-z0-9]+\.cloudflarestream\.com\/([a-f0-9]{32})\/watch/,
|
||||||
|
embedUrl:
|
||||||
|
'https://iframe.videodelivery.net/<%= remote_id %>',
|
||||||
|
html: `<iframe style="width:100%; height: ${
|
||||||
|
window.innerWidth < 640 ? '15rem' : '30rem'
|
||||||
|
};" frameborder="0" allowfullscreen></iframe>`,
|
||||||
|
},
|
||||||
codepen: true,
|
codepen: true,
|
||||||
aparat: {
|
aparat: {
|
||||||
regex: /(?:http[s]?:\/\/)?(?:www.)?aparat\.com\/v\/([^\/\?\&]+)\/?/,
|
regex: /(?:http[s]?:\/\/)?(?:www.)?aparat\.com\/v\/([^\/\?\&]+)\/?/,
|
||||||
|
|||||||
@@ -181,6 +181,7 @@ def get_lesson_icon(body, content):
|
|||||||
if block.get("type") == "embed" and block.get("data").get("service") in [
|
if block.get("type") == "embed" and block.get("data").get("service") in [
|
||||||
"youtube",
|
"youtube",
|
||||||
"vimeo",
|
"vimeo",
|
||||||
|
"cloudflareStream",
|
||||||
]:
|
]:
|
||||||
return "icon-youtube"
|
return "icon-youtube"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user