在JavaScript中撰写HTML糊
我在内容可编辑模式下使用HTML DIV。从JavaScript中,给定有效的图像URL,我如何将其转换为可以将其推入剪贴板上的东西,以便当我用ctrl+v键粘贴到内容可编辑的内容中时,它会粘贴图像本身,而不是粘贴纯文本字符串?
I'm using an HTML DIV in Content Editable mode. From Javascript, given a valid image URL in a string, how can I convert that into something that I can push onto the clipboard so that when I paste into the Content Editable DIV with CTRL+V keystroke, it pastes the image itself and not the plain text string?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)