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

@@ -34,22 +34,12 @@
<div id="privateComment" class="action-row">
<label class="col-form-label">{{ $t("private_comment") }}</label>
<ckeditor
v-model="privateComment"
:editor="classicEditor"
:config="editorConfig"
tag-name="textarea"
></ckeditor>
<comment-editor v-model="privateComment"></comment-editor>
</div>
<div id="comment" class="action-row">
<label class="col-form-label">{{ $t("comments") }}</label>
<ckeditor
v-model="note"
:editor="classicEditor"
:config="editorConfig"
tag-name="textarea"
></ckeditor>
<comment-editor v-model="note"></comment-editor>
</div>
<div id="objectives" class="action-row">
@@ -461,9 +451,7 @@
<script>
import { mapState, mapGetters } from "vuex";
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";
import AddResult from "./components/AddResult.vue";
import AddEvaluation from "./components/AddEvaluation.vue";
import AddPersons from "ChillPersonAssets/vuejs/_components/AddPersons.vue";
@@ -529,7 +517,7 @@ const i18n = {
export default {
name: "App",
components: {
ckeditor: Ckeditor,
CommentEditor,
AddResult,
AddEvaluation,
AddPersons,