From c0f4ad86651d10497031ffadcccc05bae5517e96 Mon Sep 17 00:00:00 2001 From: Ron Lucke <lucke@elan-ev.de> Date: Thu, 7 Apr 2022 12:08:14 +0200 Subject: [PATCH] fix #888 --- .../vue/components/courseware/CoursewareDefaultBlock.vue | 6 +++++- .../components/courseware/CoursewareDialogCardsBlock.vue | 1 + .../vue/components/courseware/CoursewareImageMapBlock.vue | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/vue/components/courseware/CoursewareDefaultBlock.vue b/resources/vue/components/courseware/CoursewareDefaultBlock.vue index 458739901c6..70e64403c16 100755 --- a/resources/vue/components/courseware/CoursewareDefaultBlock.vue +++ b/resources/vue/components/courseware/CoursewareDefaultBlock.vue @@ -20,7 +20,7 @@ @deleteBlock="displayDeleteDialog()" /> </header> - <div v-if="showContent" class="cw-block-content"> + <div v-if="showContent" class="cw-block-content" :class="[formattedContent ? 'formatted-content' : '']"> <slot name="content" /> </div> <div v-if="showFeatures" class="cw-block-features cw-block-features-default"> @@ -107,6 +107,10 @@ export default { defaultGrade: { type: Boolean, default: true, + }, + formattedContent: { + type: Boolean, + default: true, } }, data() { diff --git a/resources/vue/components/courseware/CoursewareDialogCardsBlock.vue b/resources/vue/components/courseware/CoursewareDialogCardsBlock.vue index 2256795d4ca..6fc79c83893 100755 --- a/resources/vue/components/courseware/CoursewareDialogCardsBlock.vue +++ b/resources/vue/components/courseware/CoursewareDialogCardsBlock.vue @@ -5,6 +5,7 @@ :canEdit="canEdit" :isTeacher="isTeacher" :preview="true" + :formattedContent="false" @storeEdit="storeBlock" @closeEdit="initCurrentData" > diff --git a/resources/vue/components/courseware/CoursewareImageMapBlock.vue b/resources/vue/components/courseware/CoursewareImageMapBlock.vue index 9ba60d662c1..2b9beb732b1 100755 --- a/resources/vue/components/courseware/CoursewareImageMapBlock.vue +++ b/resources/vue/components/courseware/CoursewareImageMapBlock.vue @@ -5,6 +5,7 @@ :canEdit="canEdit" :isTeacher="isTeacher" :preview="true" + :formattedContent="false" @storeEdit="storeBlock" @closeEdit="initCurrentData" > -- GitLab