From 10e1c97348f334846ea16262a5f8c6765e7e01e4 Mon Sep 17 00:00:00 2001
From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de>
Date: Tue, 12 Sep 2023 10:38:04 +0000
Subject: [PATCH] add `ck-content` class for vue components, fixes #3175

Closes #3175

Merge request studip/studip!2150
---
 .../courseware/CoursewareBiographyAchievementsBlock.vue         | 2 +-
 .../vue/components/courseware/CoursewareBiographyGoalsBlock.vue | 2 +-
 resources/vue/components/courseware/CoursewareGalleryBlock.vue  | 2 +-
 resources/vue/components/courseware/CoursewareTextBlock.vue     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/resources/vue/components/courseware/CoursewareBiographyAchievementsBlock.vue b/resources/vue/components/courseware/CoursewareBiographyAchievementsBlock.vue
index b59b85aa964..ed5cc2278c1 100644
--- a/resources/vue/components/courseware/CoursewareBiographyAchievementsBlock.vue
+++ b/resources/vue/components/courseware/CoursewareBiographyAchievementsBlock.vue
@@ -31,7 +31,7 @@
                         </h4>
                         <div>
                             <h4>{{ $gettext('Beschreibung') }}:</h4>
-                            <p v-html="currentData.description"></p>
+                            <div class="formatted-content ck-content" v-html="currentData.description"></div>
                         </div>
                     </div>
                 </div>
diff --git a/resources/vue/components/courseware/CoursewareBiographyGoalsBlock.vue b/resources/vue/components/courseware/CoursewareBiographyGoalsBlock.vue
index 51903d4810e..857672fc786 100644
--- a/resources/vue/components/courseware/CoursewareBiographyGoalsBlock.vue
+++ b/resources/vue/components/courseware/CoursewareBiographyGoalsBlock.vue
@@ -14,7 +14,7 @@
                     <div class="cw-block-biography-type" :class="'cw-block-biography-goals-type-' + currentData.type">
                         <h2>{{ goalTypeName }}</h2>
                     </div>
-                    <div class="cw-block-biography-details formatted-content" v-html="currentData.description">
+                    <div class="cw-block-biography-details formatted-content ck-content" v-html="currentData.description">
                     </div>
                 </div>
             </template>
diff --git a/resources/vue/components/courseware/CoursewareGalleryBlock.vue b/resources/vue/components/courseware/CoursewareGalleryBlock.vue
index ff730d09b24..7f750b09867 100644
--- a/resources/vue/components/courseware/CoursewareGalleryBlock.vue
+++ b/resources/vue/components/courseware/CoursewareGalleryBlock.vue
@@ -40,7 +40,7 @@
                         </div>
                     </div>
                     <div v-if="currentLayout === 'grid'" class="cw-block-gallery-content">
-                        <div class="cw-block-gallery-grid formatted-content">
+                        <div class="cw-block-gallery-grid">
                             <figure
                                 v-for="image in files"
                                 :key="image.id"
diff --git a/resources/vue/components/courseware/CoursewareTextBlock.vue b/resources/vue/components/courseware/CoursewareTextBlock.vue
index 30eff2fe8f7..df376c52fdf 100644
--- a/resources/vue/components/courseware/CoursewareTextBlock.vue
+++ b/resources/vue/components/courseware/CoursewareTextBlock.vue
@@ -11,7 +11,7 @@
             @closeEdit="initCurrent"
         >
             <template #content>
-                <section class="formatted-content" v-html="currentText" ref="content"></section>
+                <section class="formatted-content ck-content" v-html="currentText" ref="content"></section>
             </template>
             <template v-if="canEdit" #edit>
                 <ckeditor :editor="editor" v-model="currentText" :config="editorConfig" @ready="onReady"></ckeditor>
-- 
GitLab