我已经在我的laravel 5.6项目(npm install --save @ckeditor/ckeditor5-build-classic
)中使用npm安装了ckeditor5然后我将window.ckeditor = require('@ckeditor/ckeditor5-build-classic');
添加到我的resources/assets/js/app.js
并运行npm run dev
。编译成功了。
在我看来,当我尝试引用ckeditor
时,它说它无法找到ckeditor。请帮忙
这是我的resources/assets/js/app.js
require('./bootstrap');
window.Vue = require('vue');
/* tried both of these options one by one*/
window.ckeditor = require('@ckeditor/ckeditor5-build-classic');
// import ClassicEditor from "@ckeditor/ckeditor5-build-classic";
答案 0 :(得分:0)
尝试import ClassicEditor from "@ckeditor/ckeditor5-build-classic";
答案 1 :(得分:0)
尝试使用以下内容:
const ClassicEditor = require( '@ckeditor/ckeditor5-build-classic' );