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

[Bug report]工具栏-插入-[图片、视频等]功能失效 #71

Closed
Morris-G opened this issue Dec 23, 2021 · 1 comment
Closed

[Bug report]工具栏-插入-[图片、视频等]功能失效 #71

Morris-G opened this issue Dec 23, 2021 · 1 comment

Comments

@Morris-G
Copy link
Contributor

Morris-G commented Dec 23, 2021

Describe the bug
插入-图片失效,没有选择文件的弹框

To Reproduce
Steps to reproduce the behavior:
1.点击工具栏-插入
2.点击图片

Expected behavior
弹出选择文件的弹框

Environment (please complete the following information):

  • OS: [macOS]
  • Browser [Chrome]
  • Version [0.5.16]

Additional context
这里的代码设置input类型的时候有问题,传入的['image', 'video', 'pdf']等是无效值,此时浏览器会将其设置为默认的'text',参考MDN文档所以不会出现选择文件的弹框。0.5.14版本中默认的就是'file',不知为何后来改掉了...另外目前没有限制指定类型的字段,希望加入限制,或添加相应的配置项。

@jiawei686
Copy link
Collaborator

jiawei686 commented Dec 23, 2021

收到,0.5.16版本中参数的使用出现问题,已在0.5.17版本中修复并紧急发布。已预留字段,后续版本会通过accept属性对文件类型进行适当限制,感谢反馈!

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

3 participants