Nuxt3 - is possible ckeditor5?

36 views Asked by At

Can ckeditor5 be used in a Nuxt3 environment?

Window is not defined error occurred It does not work even though I wrapped it in .

error image

<template>
    <ClientOnly placeholder="loading...">
        <ckeditor :editor="ClassicEditor" />
    </ClientOnly>
</template>

<script>
import ClassicEditor from '@ckeditor/ckeditor5-build-classic'
import CKEditor from '@ckeditor/ckeditor5-vue'

export default defineComponent({
    components: {
        ckeditor: CKEditor,
    },
    data() {
        return {
            ClassicEditor,
        }
    },
})
</script>
0

There are 0 answers