TypeError: Cannot read properties of undefined (reading 'model') at Proxy.$_setUpEditorEvents
TypeError: Cannot read properties of undefined (reading 'model') at Proxy.$_setUpEditorEvents
我正在 Laravel 中尝试将 CKEditor 5 与我的 Inertia 应用程序一起使用。但是在按照文档进行操作后,我遇到了以下错误。
index.vue 文件
<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>
如果你使用 Vue 3,试试 vue@3.2.30
我正在 Laravel 中尝试将 CKEditor 5 与我的 Inertia 应用程序一起使用。但是在按照文档进行操作后,我遇到了以下错误。
index.vue 文件
<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>
如果你使用 Vue 3,试试 vue@3.2.30