diff --git a/src/lib/components/Course/components/Lesson/Materials/components/ComponentNote.svelte b/src/lib/components/Course/components/Lesson/Materials/components/ComponentNote.svelte index c09b4907..67503abc 100644 --- a/src/lib/components/Course/components/Lesson/Materials/components/ComponentNote.svelte +++ b/src/lib/components/Course/components/Lesson/Materials/components/ComponentNote.svelte @@ -16,7 +16,7 @@ {#if !isNoteEmpty($lesson.materials?.note)} -
+
{@html $lesson.materials.note} -
+ {/if} diff --git a/src/lib/components/Course/components/Lesson/Materials/index.svelte b/src/lib/components/Course/components/Lesson/Materials/index.svelte index b4bab92a..6c3efd5c 100644 --- a/src/lib/components/Course/components/Lesson/Materials/index.svelte +++ b/src/lib/components/Course/components/Lesson/Materials/index.svelte @@ -34,6 +34,7 @@ import ComponentNote from './components/ComponentNote.svelte'; import ComponentSlide from './components/ComponentSlide.svelte'; import ComponentVideo from './components/ComponentVideo.svelte'; + import HtmlRender from '$lib/components/HTMLRender/HTMLRender.svelte'; export let mode = MODES.view; export let prevMode = ''; @@ -234,144 +235,148 @@ -

- {lessonTitle} -

+ + +

+ {lessonTitle} +

-{#if mode === MODES.edit} - - - -
- { - openPopover = !openPopover; - }} - isLoading={$isLoading} - isDisabled={$isLoading} - variant={VARIANTS.OUTLINED} - > - - AI - { - openPopover = aiButtonRef?.contains(detail.target); - }} - > -
- - - -
-
-
-
- -
- ($lesson.materials.note = html)} - placeholder="Write your lesson note here" - /> -
-
- - - {#if mode === MODES.edit} - - {/if} - - - - {#if $lesson.materials.videos.length} -
- {#each $lesson.materials.videos as video, index} - {#if mode === MODES.edit} -
- deleteLessonVideo(index)} - > - - -
- {/if} -
- {#key video.link} -
- {#if video.type === 'youtube'} -