Answer the question
In order to leave comments, you need to log in
How to integrate CKeditor5 vue and CKFinder laravel?
Good evening
1) I installed CKEditor vue, connected it, everything worked, the editor appeared on the page.
<template>
<ckeditor :editor="editor" :config="editorConfig" v-model="content">
{{form.content}}
</ckeditor>
</template>
<script>
import ClassicEditor from "@ckeditor/ckeditor5-build-classic";
export default {
data(){
return{
content: '',
editor: ClassicEditor,
editorConfig: {
// The configuration of the editor.
}
}
},
}
</script>
npm install --save @ckeditor/ckeditor5-ckfinder
<template>
<ckeditor :editor="editor" :config="editorConfig" v-model="content">
{{form.content}}
</ckeditor>
</template>
<script>
import ClassicEditor from "@ckeditor/ckeditor5-build-classic";
import CKFinder from '@ckeditor/ckeditor5-ckfinder/src/ckfinder';
export default {
data(){
return{
content: '',
editor: ClassicEditor,
editorConfig: {
// The configuration of the editor.
plugins: ['CKFinder']
}
}
},
}
</script>
app.js:48004 CKEditorError: ckeditor-duplicated-modules
Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-ckeditor-duplicated-modules
at Module.<anonymous> (http://watch-company.kz/18.js:26032:8)
at Module../node_modules/@ckeditor/ckeditor5-utils/src/version.js (http://watch-company.kz/18.js:26040:30)
at __webpack_require__ (http://watch-company.kz/js/app.js:64:30)
at Module../node_modules/@ckeditor/ckeditor5-utils/src/emittermixin.js (http://watch-company.kz/18.js:23054:66)
at __webpack_require__ (http://watch-company.kz/js/app.js:64:30)
at Module../node_modules/@ckeditor/ckeditor5-utils/src/observablemixin.js (http://watch-company.kz/18.js:24743:71)
at __webpack_require__ (http://watch-company.kz/js/app.js:64:30)
at Module../node_modules/@ckeditor/ckeditor5-core/src/plugin.js (http://watch-company.kz/18.js:2146:103)
at __webpack_require__ (http://watch-company.kz/js/app.js:64:30)
at Module../node_modules/@ckeditor/ckeditor5-ckfinder/src/ckfinder.js (http://watch-company.kz/18.js:346:93)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question