Use update ckeditor5

This commit is contained in:
Julie Lenaerts 2025-01-30 17:23:50 +01:00
parent a2fcf039be
commit 9b84bc4d69
3 changed files with 665 additions and 1866 deletions

View File

@ -9,7 +9,7 @@
import ConcernedGroups from "./components/ConcernedGroups.vue";
import SocialIssuesAcc from "./components/SocialIssuesAcc.vue";
import Location from "./components/Location.vue";
import CommentEditor from "ChillMainAssets/vuejs/_components/CommentEditor.vue";
import CommentEditor from "ChillMainAssets/vuejs/_components/CommentEditor.vue"
export default {
name: "App",

View File

@ -24,7 +24,8 @@
<div v-if="!isSimple">
<ckeditor
name="content"
:editor="editor"
:editor="classicEditor"
:config="editorConfig"
v-model="content"
tag-name="textarea"
/>
@ -42,19 +43,21 @@
</template>
<script lang="ts">
import { ref, onMounted } from "vue";
import CKEditor from "@ckeditor/ckeditor5-vue";
import ClassicEditor from "../../module/ckeditor5/editor_config";
import {Ckeditor} from "@ckeditor/ckeditor5-vue";
import classicEditorConfig from "ChillMainAssets/module/ckeditor5/editor_config"
import {ClassicEditor} from "ckeditor5";
import {onMounted, ref} from "vue"
export default {
name: "CommentEditor",
components: {
ckeditor: CKEditor.component,
ckeditor: Ckeditor,
},
setup() {
const isSimple = ref(false);
const content = ref("");
const editor = ClassicEditor;
const classicEditor = ClassicEditor;
const editorConfig = classicEditorConfig;
const initializeEditorPreference = () => {
const storedValue = localStorage.getItem("isSimpleEditor");
@ -74,9 +77,10 @@ export default {
return {
isSimple,
content,
editor,
toggleSimpleEditor,
content: "",
classicEditor,
editorConfig,
};
},
};

2509
yarn.lock

File diff suppressed because it is too large Load Diff