Answer the question
In order to leave comments, you need to log in
How to integrate CKFinder with CKEditor 5 vue?
Tell me how it is right, who did it? If I separately do the import, it says that the module is duplicated, it turns out to make it work only by connecting to the page body, but this is not an option here, because. I need it only in a certain component, otherwise the error "Cannot read property 'modal' of undefined" takes off! What does he need, how to achieve the right integration?
Answer the question
In order to leave comments, you need to log in
At the moment I came up with this implementation:
mounted() {
if (!document.querySelector('#ckfinder-script')) {
const script = document.createElement('script');
script.id = 'ckfinder-script';
script.async = true;
script.src = '/ckfinder/ckfinder.js';
document.body.append(script);
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question