tags:

views:

158

answers:

1

Hi,

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

A: 

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.

Pekka
Thanks for your response. The text acquired from clipboard is text only. I need to get htmlText (text + html tags), which was previously the return value of CKEDITOR.getClipboardData(). Do you have any suggestions for this?Many thanks again,Kristin
Kristin
Ahh of course, it's called paste*Text*. I don't know where they hid the real "getClipboard" function. My only idea would be to cut out the clipboard fetching part from pasteText, as I'm quite sure it still contains the original HTML at some point. Sorry.
Pekka