开发者

CKEditor 3.1 - getClipboardData

开发者 https://www.devze.com 2022-12-16 13:14 出处:网络
Is there anyway to get the html clipboard data as done in getClipboardData() in plugin clip开发者_StackOverflow中文版board.js? Can anyone pls give me some guidelines to do that?

Is there anyway to get the html clipboard data as done in getClipboardData() in plugin clip开发者_StackOverflow中文版board.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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消