Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
zhengyn0001 opened this issue Nov 26, 2019 · 10 comments
Closed

Comments

@zhengyn0001
Copy link

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
Copy link
Owner

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

@zhengyn0001
Copy link
Author

我是这么用的
image

@soccerloway
Copy link
Owner

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

@soccerloway
Copy link
Owner

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

@soccerloway
Copy link
Owner

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

@zhengyn0001
Copy link
Author

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

@soccerloway
Copy link
Owner

@zhengyn0001 加q?54760187

@soccerloway
Copy link
Owner

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
Copy link

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

@v1talii-dev
Copy link

not work in quill 2.0.0-dev.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants