上下文菜单粘贴
我在应用程序中使用tinymce,并希望使用上下文菜单选项粘贴复制的内容。但是,我在文档中没有看到粘贴选项。请问有人可以提供文档或示例吗?
Link: https://codepen.io/balukantu/pen/abEOvKr
I am using tinymce in my application and would like to paste the copied content using context menu options. However, I don't see paste options in the documentation. Could you please someone provide the documentation or example?
Link: https://codepen.io/balukantu/pen/abEOvKr
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将能够在大多数现代浏览器上执行您想要的操作。
如果您尝试使用 TinyMCE 中内置的剪切/复制/粘贴工具栏按钮或菜单选项,您会在大多数浏览器中看到以下内容:
正如编辑器中的消息所述,这只是您在某些浏览器中可以/不能直接通过 JavaScript 执行的操作的限制。IE11
确实允许通过旧版 API 进行访问,但不允许目前其他浏览器完全支持剪贴板 API,因此复制剪贴板中内容的唯一方法是使用键盘。
You will be able to do what you want on most modern browsers.
If you try to use the built in Cut/Copy/Paste toolbar buttons or menu options in TinyMCE you see this for most browsers:
As the message from the editor states this is simply a limitation of what you can / cannot do directly via JavaScript in certain browsers.
IE11 does indeed allow access via legacy APIs but no other browser at present supports the clipboard APIs at all so the only way to copy what is in the clipboard is to use the keyboard.