Looking for assistance with integrating CKEditor 5 into a web application built with Vue.js and Laravel.
To install the necessary dependencies, I used the following command:
npm install --save @ckeditor/ckeditor5-vue @ckeditor/ckeditor5-build-classic
as mentioned in the documentation available here.
In my component file, I included the necessary imports for CKEditor:
<script>
import draggable from 'vuedraggable'
import CKEditor from '@ckeditor/ckeditor5-vue'
import ClassicEditor from '@ckeditor/ckeditor5-build-classic'
export default {
components: {
draggable,
ckeditor: CKEditor.component
},
data() {
return {
editor: ClassicEditor,
editorConfig: {
}
}
},
However, I encountered an error message stating:
Error: ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated
I attempted to resolve this by following the recommendations provided:
rm -rf node_modules && npm install
or deleting the package-lock.json file.
Further details on this error can be found in the documentation here.
If anyone has any insights or solutions to this issue, it would be greatly appreciated. Thank you.