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

有这么一个方法,你可以上传好视频,再把链接插入编辑器 #57

Open
leecn-web opened this issue Mar 18, 2022 · 5 comments

Comments

@leecn-web
Copy link

有这么一个方法,你可以上传好视频,再把链接插入编辑器

zxEditor.addMedia(url, type)

向正文焦点处添加图片/音频/视频

图片url地址或base64数据

音频/视频只支持url地址

参数:

url: String url地址

type: String, img|audio|video

Originally posted by @capricorncd in #29 (comment)

大佬,最新的3.0.4 没有这段代码 是不是没有push上去呀

@capricorncd
Copy link
Owner

v2.x里才有这个方法
https://github.com/capricorncd/zx-editor/tree/v2.x.x

@leecn-web
Copy link
Author

v2.x里才有这个方法 https://github.com/capricorncd/zx-editor/tree/v2.x.x

在chrome调试加入到编辑器中可以正常显示查看,但是 在真机中 video的层级会把所有的元素 盖住

@capricorncd
Copy link
Owner

真机啥浏览器,微信?还是video元素被设置了啥CSS样式

@leecn-web
Copy link
Author

真机啥浏览器,微信?还是video元素被设置了啥CSS样式

目前看android都有问题,我手机小米11 在钉钉应用中 显示有问题

@leecn-web
Copy link
Author

真机啥浏览器,微信?还是video元素被设置了啥CSS样式

video也没设置啥 就是 默认的样式

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

2 participants