Open zzj0401 opened 4 years ago
All the way i try arrording to other issues,And there is no solution.need Help!!!
Please help. I have the same problem. Using react.
Same error using ngx-quill and this plugin in an Angular app
vue.config.js
chainWebpack: config => {
config.plugin('provide').use(
require('webpack').ProvidePlugin,
[
{
'window.Quill': 'quill'
}
]
)
}
Component
import Quill from 'quill'
import ImageResize from 'quill-image-resize-module'
Quill.register('modules/imageResize', ImageResize)
FWIW I fixed this with ngx-quill by installing the BlotFormatter plugin (which also supports image resizing)
using quill-image-resize-module-react can fix it when you use react-quill
webpack config
code