soccerloway / quill-better-table

Module for better table in Quill, more useful features are supported.
MIT License
313 stars 120 forks source link

quill Cannot import modules/table. Are you sure it was registered? #28

Closed zhengyn0001 closed 4 years ago

zhengyn0001 commented 4 years ago

image 我试过在vue.config.js里面设置 config.plugin('provide').use(webpack.ProvidePlugin, [{ 'window.Quill': 'quill/dist/quill.js', 'Quill': 'quill/dist/quill.js' }]),可是还是不成功,我想问一下你有遇到过这个问题吗,我是在vue里面使用的,我直接npm quill@2.0.0-dev.3

soccerloway commented 4 years ago

@zhengyn0001 你是不是在quil实例化的配置里面,加上了这些模块,但是却没有调用register注册它们呢?

zhengyn0001 commented 4 years ago

我是这么用的 image

soccerloway commented 4 years ago

image 我这样子貌似没遇到问题。

soccerloway commented 4 years ago

image 这样子可以正常使用,刚刚用vue-cli建了个项目试了下。 image

soccerloway commented 4 years ago

你是在vue-quill-editor中使用吗?在vue-quill-editor中使用的话,还需要将vue-quill-editor依赖的quilljs版本升级至2.0.x. #27 可以看看这个issue的问题。

zhengyn0001 commented 4 years ago

我的版本是quill@2.0.0-dev.3,我已经确认过了

soccerloway commented 4 years ago

@zhengyn0001 加q?54760187

soccerloway commented 4 years ago

I made a fork for vue-quill-editor with quill 2.0, If someone wants to use quill-better-table with vue-quill-editor, use the configure below to instead official vue-quill-editor in package.json: "vue-quill2-editor": "https://git.coding.net/loway/vue-quill2-editor.git#b3ec62c694e4a54073eec038680b2627c55bd632" and then yarn install image

Alec-Aldrine-Lakra commented 4 years ago

Check the quill version it should be 2.0.0-dev.3 , better table module does not work in quill 1.3.*

v1talii-dev commented 2 years ago

not work in quill 2.0.0-dev.3