Vue - 富文本vue-quill-editor
文章目录
- 基础安装和使用
https://awesomejs.dev/for/vue... 扩展
- 图片自定义上传模块(防止base64数据太长无法插入数据库):quill-image-extend-module
- 图片尺寸控制:quill-image-resize-module
扩展导入的问题
- Cannot read property 'imports' of undefined
解决方式:webpack配置
plugins: [ new webpack.ProvidePlugin({ 'window.Quill': 'quill/dist/quill.js', 'Quill': 'quill/dist/quill.js' }) ]- Cannot read property 'register' of undefined
解决方式:安装quill-image-resize-module@1.0.0

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论