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

@@ -13,14 +13,7 @@
$t("comment.label")
}}</label>
<ckeditor
name="content"
:placeholder="$t('comment.content')"
:editor="classicEditor"
:config="editorConfig"
v-model="content"
tag-name="textarea"
/>
<comment-editor v-model="content" />
<div class="sub-comment">
<div
@@ -61,15 +54,13 @@
</template>
<script>
import { ClassicEditor } from "ckeditor5";
import { Ckeditor } from "@ckeditor/ckeditor5-vue";
import classicEditorConfig from "ChillMainAssets/module/ckeditor5/editor_config";
import CommentEditor from "ChillMainAssets/vuejs/_components/CommentEditor/CommentEditor.vue";
import { mapState } from "vuex";
export default {
name: "Comment",
components: {
ckeditor: Ckeditor,
CommentEditor,
},
data() {
return {

View File

@@ -18,14 +18,7 @@
</h3>
</template>
<template #body>
<ckeditor
name="content"
:placeholder="$t('comment_placeholder')"
:editor="editor"
:config="editorConfig"
v-model="content"
tag-name="textarea"
/>
<comment-editor v-model="content" />
</template>
<template #footer>
<a class="btn btn-save" @click="saveAction">
@@ -39,15 +32,13 @@
<script>
import Modal from "ChillMainAssets/vuejs/_components/Modal.vue";
import { makeFetch } from "ChillMainAssets/lib/api/apiMethods";
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: "WriteComment",
components: {
Modal,
ckeditor: Ckeditor,
CommentEditor,
},
props: ["resource"],
emits: ["updateComment"],