diff --git a/lms/static/scripts/frontend_apps/components/ContentSelector.tsx b/lms/static/scripts/frontend_apps/components/ContentSelector.tsx
index a12fa597de..b5df3cc143 100644
--- a/lms/static/scripts/frontend_apps/components/ContentSelector.tsx
+++ b/lms/static/scripts/frontend_apps/components/ContentSelector.tsx
@@ -152,6 +152,13 @@ export default function ContentSelector({
onSelectContent({ type: 'url', url });
};
+ const selectYouTubeURL = (url: string, title?: string) => {
+ cancelDialog();
+
+ const name = title && `YouTube: ${title}`;
+ onSelectContent({ type: 'url', url, name });
+ };
+
const selectCanvasFile = (file: File) => {
cancelDialog();
onSelectContent({ type: 'file', file });
@@ -259,7 +266,7 @@ export default function ContentSelector({