Cloudworks is no longer accepting new user registrations, and will be closing down on 24th June 2019. We hope to make a read-only archive of the site available soon after.
A technical blog post for the Track OER project...
Cloud created by:
5 September 2012
The big headline from technical testing of CaPReT, was that copy and paste doesn't work as expected in Internet Explorer (versions 6 - 9).
My apologies in advance for the technical complexities I detail below. I thought it best to record what we've found before we forget!
In Internet Explorer, when you try to do a simple paste it pastes the source HTML markup, escaped - so you see "<a href="...">..</a>..
The Internet Explorer branch of this plugin's logic uses clipboardData.setData, which supports copying as "Text" or "URL" (no "HTML" value available). When the user pastes the destination rich-editor handles the clipboard data as text, escaping and revealinfg the markup. The plugin's logic for the other browsers manipulates the W3C Range that is to be copied, then hands over to the browser to actually perform the copy (that is, it doesn't prevent the default action). So, when the clipboard data is pasted it is recognized as rich-text/HTML and works accordingly.
I need to check priorities with my colleagues, but I am tempted to abandon the ierange/jquery.clipboard2 based solution for the moment, as it could become a big time-sink.