CKEditor 3.1 - getClipboardData

徘徊边缘 提交于 2019-12-06 16:08:19

问题


Is there anyway to get the html clipboard data as done in getClipboardData() in plugin clipboard.js? Can anyone pls give me some guidelines to do that?

In previous version I can get data simply by calling CKEDITOR.getClipboardData() but this is no longer available in CKEditor 3.1.

Many thanks,

Kristin


回答1:


I don't know why the function was removed from CKEditor's core, but the "paste from clipboard" functionality continues to exist in the pasteText plugin.

It should be possible to execute the plugin's function directly programmatically, but I don't know how this is done yet.

As a last resort, you could copy the code that does the pasting.



来源:https://stackoverflow.com/questions/2040716/ckeditor-3-1-getclipboarddata

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!