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
改善图片预览 #1220
Comments
看需求,如果优化图片预览功能,关闭就应该不需要了吧? |
编辑模式下,默认是开启图片预览功能的,而且我没有找到关闭入口 |
那就加强一下图片预览功能吧 |
heiyehk
added a commit
to heiyehk/vditor
that referenced
this issue
Jan 7, 2023
- Vanessa219#1220 改善图片预览问题,增加options->preview->showImage: boolean控制是否双击预览 - 增加options->previewImage函数获取触发的图片节点,参数img: HTMLImageElement 链接相关 - 增加options-> link属性,options->open: boolean控制点击打开链接,intercept函数控制点击的链接,参数 url: string
Merged
Vanessa219
pushed a commit
that referenced
this issue
Jan 15, 2023
* feat: 图片相关 - #1220 改善图片预览问题,增加options->preview->showImage: boolean控制是否双击预览 - 增加options->previewImage函数获取触发的图片节点,参数img: HTMLImageElement 链接相关 - 增加options-> link属性,options->open: boolean控制点击打开链接,intercept函数控制点击的链接,参数 url: string * style: 回滚主分支的代码格式 * refactor: 重新对link的触发函数命名 * docs: 增加对img和link的readme
会先判断 preview 方法,然后再判断是否启用。
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PreviewImage 没有提供缩等功能,可不可以提供一个开关用于关闭默认previewImage的功能,目前是通过css隐藏
The text was updated successfully, but these errors were encountered: