mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
Use update ckeditor5
This commit is contained in:
parent
183a220e7b
commit
f0f2531fa3
@ -9,7 +9,7 @@
|
|||||||
import ConcernedGroups from "./components/ConcernedGroups.vue";
|
import ConcernedGroups from "./components/ConcernedGroups.vue";
|
||||||
import SocialIssuesAcc from "./components/SocialIssuesAcc.vue";
|
import SocialIssuesAcc from "./components/SocialIssuesAcc.vue";
|
||||||
import Location from "./components/Location.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 {
|
export default {
|
||||||
name: "App",
|
name: "App",
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
<div v-if="!isSimple">
|
<div v-if="!isSimple">
|
||||||
<ckeditor
|
<ckeditor
|
||||||
name="content"
|
name="content"
|
||||||
:editor="editor"
|
:editor="classicEditor"
|
||||||
|
:config="editorConfig"
|
||||||
v-model="content"
|
v-model="content"
|
||||||
tag-name="textarea"
|
tag-name="textarea"
|
||||||
/>
|
/>
|
||||||
@ -42,19 +43,21 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { ref, onMounted } from "vue";
|
import {Ckeditor} from "@ckeditor/ckeditor5-vue";
|
||||||
import CKEditor from "@ckeditor/ckeditor5-vue";
|
import classicEditorConfig from "ChillMainAssets/module/ckeditor5/editor_config"
|
||||||
import ClassicEditor from "../../module/ckeditor5/editor_config";
|
import {ClassicEditor} from "ckeditor5";
|
||||||
|
import {onMounted, ref} from "vue"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "CommentEditor",
|
name: "CommentEditor",
|
||||||
components: {
|
components: {
|
||||||
ckeditor: CKEditor.component,
|
ckeditor: Ckeditor,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const isSimple = ref(false);
|
const isSimple = ref(false);
|
||||||
const content = ref("");
|
const content = ref("");
|
||||||
const editor = ClassicEditor;
|
const classicEditor = ClassicEditor;
|
||||||
|
const editorConfig = classicEditorConfig;
|
||||||
|
|
||||||
const initializeEditorPreference = () => {
|
const initializeEditorPreference = () => {
|
||||||
const storedValue = localStorage.getItem("isSimpleEditor");
|
const storedValue = localStorage.getItem("isSimpleEditor");
|
||||||
@ -74,9 +77,10 @@ export default {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
isSimple,
|
isSimple,
|
||||||
content,
|
|
||||||
editor,
|
|
||||||
toggleSimpleEditor,
|
toggleSimpleEditor,
|
||||||
|
content: "",
|
||||||
|
classicEditor,
|
||||||
|
editorConfig,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user