Open mat148 opened 1 month ago
I think the problem is that you are trying to use the default export of the @ckeditor/ckeditor5-vue
package as a component, but it's a Vue plugin. Try updating your code like this:
import CKEditor from '@ckeditor/ckeditor5-vue';
export default defineNuxtPlugin((nuxtApp) => {
- nuxtApp.vueApp.component('ckeditor', CKEditor)
+ nuxtApp.vueApp.use(CKEditor)
})
You may also need to wrap your own component that contains the <ckeditor>
component and import {} from 'ckeditor5'
with the <ClientOnly>
component, as CKEditor has side effects that are known to cause problems with SSR. This issue is on our roadmap.
The issue lacks the feedback we asked for two weeks. Hence, we've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.
Trying to setup CK5 in Vue and I'm running into some issues. Getting this error:
Component is missing template or render function.
We are on Vue3, Nuxt3, Composition api, and we use script setup. I followed this tutorial: https://ckeditor.com/ckeditor-5/builder/ with some slight modifations.
I inintalized the component through a plugin:
Template:
Script: