mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Use update ckeditor5
This commit is contained in:
parent
a2fcf039be
commit
9b84bc4d69
@ -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",
|
||||
|
@ -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,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user