ckeditor5打包插件报错
source link: https://www.oschina.net/question/5027212_2322360
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
ckeditor5打包插件报错
ckeditor5按照文档来安装上传插件( npm install --save @ckeditor/ckeditor5-upload ),index.html引入 plugins: [SimpleUploadAdapter],
toolbar: ['imageUpload'],
simpleUpload: {
// The URL that the images are uploaded to.
uploadUrl: '/index/index/img_upload',
// Enable the XMLHttpRequest.withCredentials property.
withCredentials: true,
// Headers sent along with the XMLHttpRequest to the upload server.
headers: {
'X-CSRF-TOKEN': 'CSRF-Token',
Authorization: 'Bearer <JSON Web Token>'
}
}
报错:ReferenceError: SimpleUploadAdapter is not defined
npm run bulid打包报错, 前端的webpack不太了解,请问这是什么错误
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK