replace ck-editor by new CommentEditor on every vuejs components

This commit is contained in:
2025-05-23 13:51:44 +02:00
parent 19dd4667f2
commit bb41af4ed2
7 changed files with 20 additions and 80 deletions

View File

@@ -29,12 +29,7 @@
</div>
<div class="item-row comment">
<ckeditor
:editor="classicEditor"
:config="editorConfig"
v-model="comment"
tag-name="textarea"
/>
<comment-editor v-model="comment" />
</div>
<div class="item-row participation-details">
@@ -103,15 +98,13 @@ div.participation-details {
<script>
import { mapGetters } from "vuex";
import PersonRenderBox from "ChillPersonAssets/vuejs/_components/Entity/PersonRenderBox.vue";
import { Ckeditor } from "@ckeditor/ckeditor5-vue";
import classicEditorConfig from "ChillMainAssets/module/ckeditor5/editor_config";
import { ClassicEditor } from "ckeditor5";
import CommentEditor from "ChillMainAssets/vuejs/_components/CommentEditor/CommentEditor.vue";
export default {
name: "MemberDetails",
components: {
PersonRenderBox,
ckeditor: Ckeditor,
CommentEditor,
},
props: ["conc"],
computed: {

View File

@@ -1,30 +1,17 @@
<template>
<ckeditor
name="content"
:placeholder="
$t('household_members_editor.positioning.comment_placeholder')
"
:editor="editor"
:config="editorConfig"
v-model="content"
tag-name="textarea"
/>
<comment-editor v-model="content" />
</template>
<script>
import { Ckeditor } from "@ckeditor/ckeditor5-vue";
import classicEditorConfig from "ChillMainAssets/module/ckeditor5/editor_config";
import { ClassicEditor } from "ckeditor5";
import CommentEditor from "ChillMainAssets/vuejs/_components/CommentEditor/CommentEditor.vue";
export default {
name: "PersonComment.vue",
components: {
ckeditor: Ckeditor,
CommentEditor,
},
props: ["conc"],
computed: {
editor: () => ClassicEditor,
editorConfig: () => classicEditorConfig,
content: {
get() {
return this.$props.conc.comment || "";