-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
将图片拖拽入编辑器,根据图片data-data,对图片进行特殊的处理 #5869
Comments
想要额外的处理需要做插件扩展,wangEditor5基于 slate ,会对富文本进行格式化,data-data不是img的属性,会过滤掉的。 |
能提供一下具体的思路嘛?我想不出 |
@ZWKJ-DH 参考 https://www.wangeditor.com/v5/plugins.html 有教程及 demo,你的需求是 不过滤 data-data 属性,应该不难实现。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
将图片拖拽入编辑器,根据图片data-data,对图片进行特殊的处理
wangEditor 版本
5 vue2
是否查阅了文档 ?
(文档链接 www.wangeditor.com )
是
最小成本的复现步骤
(请告诉我们,如何最快的复现该问题?)
快速开始
搭建wangeditor页面<img src="xxx.png" :data-data="data">
The text was updated successfully, but these errors were encountered: