Answer the question
In order to leave comments, you need to log in
How to connect imageUpload plugin from CKEditor5 in vue?
Hello! I'm trying to connect ckeditor5 with the ability to load images locally in my component. With such a connection:
let DecoupledEditor, VueEditor, imageUpload
if (process.browser) {
imageUpload = require('@ckeditor/ckeditor5-image/src/imageupload')
DecoupledEditor = require('@ckeditor/ckeditor5-build-classic')
VueEditor = require('@ckeditor/ckeditor5-vue')
VueEditor = VueEditor.component
}
-----
// data моего компонента
data() {
return {
editor: DecoupledEditor,
editorData: '<p>Content of the editor.</p>',
editorConfig: {
plugins: [imageUpload],
toolbar: [
'heading',
'|',
'bold',
'italic',
'bulletedList',
'numberedList',
'imageUpload'
]
}
}
}
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