2

I am trying to use CKEditor 5 with my Inertia Application in Laravel. But after following the documentation I am getting below error.

enter image description here

index.vue file

<template>
    <div id="app">
        <ckeditor :editor="editor" v-model="editorData" :config="editorConfig"></ckeditor>
    </div>
</template>

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

    export default {
        name: 'app',
        components: {
            ckeditor: CKEditor.component
        },
        data() {
            return {
                editor: ClassicEditor,
                editorData: '<p>Content of the editor.</p>',
                editorConfig: {
                    // The configuration of the editor.
                }
            };
        }
    }
</script>
Deepak
  • 548
  • 3
  • 15

1 Answers1

3

try vue@3.2.30 if you using Vue 3

O-Hooman
  • 46
  • 1