Everyone else online is using ZeroClipboard because of security restraints
but that is a hack in itself and I expect will stop working eventually. In
addition, it only works online.
The W3C is going to be implementing the Clipboard API for HTML 5 (
http://dev.w3.org/2006/webapi/clipops/clipops.html) but it still doesn't
seem to work yet. I can't find any working examples online.
The following code is what I have been using in TWC but it only seems to
work in Internet Explorer but not in Tiddlywiki 5 because Javascript is
stripped. I could spend time writing a widget for just IE but is it worth
it?
Can anyone tell me what direction I should go? The alternative is
painstakingly selecting text and hitting Ctrl + C or right click to copy,
or in the case of touch screen by long pressing and messing with those
selector arrows. 3 or more steps vs 1 step. I am trying to aim for
something that copies to clipboard online, offline, server side, client
side, mouse, touch screen, and browser independent. Is that to much to wish
for?

<a href="javascript:;" title="copy" onclick="
var holdtext = document.createElement('TEXTAREA');
holdtext.innerText='This only seems to work in Internet Explorer';
Copied=holdtext.createTextRange();
Copied.execCommand('Copy');
return false;">Copy</a>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to