使用JavaScript从剪贴板粘贴图像 [英] Paste an image from clipboard using JavaScript

查看:147
本文介绍了使用JavaScript从剪贴板粘贴图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何使用javascript将剪贴板中的图像粘贴到自定义富文本编辑器中? (ctrl + c和ctrl + v或快照)。



有没有人使用过Ajax的富文本编辑器?将图像从剪贴板粘贴到Ajax RTE是否有效?



请分享您的想法!



谢谢!

解决方案

因为这个问题仍然经常出现在谷歌的搜索结果中,所以我想指出今天可以这样做, at至少在所有现代浏览器(2018年)的谷歌浏览器(2011)中。他们将其实施用于GMail,但它适用于所有网站。




How do we paste an image from clipboard into a custom rich text editor using javascript? (ctrl+c and ctrl+v or a snapshot).

Has anyone used Ajax's rich text editor? Does pasting an image from clipboard to Ajax RTE work?

Please do share your thoughts!

Thanks!

解决方案

Because this question still often shows up in Google's search results, I want to point out this is possible today, at least in Google Chrome (2011) in all modern browsers (2018). They implemented it to use in GMail, but it is available for all websites.

How does the paste image from clipboard functionality work in Gmail and Google Chrome 12+?

这篇关于使用JavaScript从剪贴板粘贴图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆