CLASSROOMIO-T-116: Replace Markdown with WYSIWIG

CLASSROOMIO-T-116: Resolved Feedbacks

CLASSROOMIO-T-116: Replace Markdown with WYSIWIG


Co-authored-by: Tunji Adeyemi <tunji@digdippa.com>


Merge-request: CLASSROOMIO-MR-52
Merged-by: Best Admin <best@digdippa.com>
This commit is contained in:
tunny17
2023-08-22 11:01:09 +00:00
committed by Space Cloud
parent 32d0198d3d
commit a422f2f290
4 changed files with 86 additions and 64 deletions
+5 -6
View File
@@ -1,4 +1,5 @@
<script>
import TextEditor from '$lib/components/TextEditor/index.svelte';
import { marked } from 'marked';
import RoleBasedSecurity from '../RoleBasedSecurity/index.svelte';
import PageNav from '../PageNav/index.svelte';
@@ -41,13 +42,11 @@
<PageBody width="max-w-3xl px-3">
{#if mode === MODES.edit}
<EditContent
writeLabel="Note"
bind:value={$course.overview}
placeholder="Start typing your lesson"
onInputChange={() => {
<TextEditor
bind:content={$course.overview}
onChange={(c) => {
$course.overview = c;
isDirty = true;
console.log('input change');
}}
/>
{:else}