Hi Rustem, Infurnoape, Good news, I hadn’t realised that things had moved on.
Infurnoape’s plugin works in all the browsers I tried. It’s certainly something I’d like to see in the core. I’d prefer an implementation that allowed rendered output to be copied to the clipboard, not just raw tiddler content. It would also be more robust if it didn’t rely on getElementById; all of that is fixable, happily. Best wishes Jeremy > On 25 Jun 2016, at 07:58, R <[email protected]> wrote: > > Nice. Doesn't fit my use case but proves it can be done :D > > On Fri, Jun 24, 2016 at 7:16 PM, infurnoape <[email protected] > <mailto:[email protected]>> wrote: > Check out how I did this plugin. > http://copy.tiddlyspot.com <http://copy.tiddlyspot.com/> > > Happy Connecting. Sent from my Sprint Samsung Galaxy S® 5 > > > -------- Original message -------- > From: Rustem <[email protected] <mailto:[email protected]>> > Date: 6/24/16 6:03 PM (GMT-07:00) > To: TiddlyWiki <[email protected] > <mailto:[email protected]>> > Cc: [email protected] <mailto:[email protected]> > Subject: Re: [tw] [TW5] Is it possible to make a Copy2Clipboard widget? > > Is it time to revisit the issue? Seems to be supported by all major browsers. > http://caniuse.com/#feat=clipboard <http://caniuse.com/#feat=clipboard> > Would be nice to have a "copy" button appear on hover over any <code> piece. > > On Tuesday, January 6, 2015 at 11:26:22 AM UTC-8, Jeremy Ruston wrote: > Hi Andrew > > I'd also love to have a "copy to clipboard" button. The HTML5 Clipboard API > is proceeding very slowly, with very patchy browser support. There's no > implementation of copy to clipboard that I know of. > > Right now the best prospect for an implementation is within TiddlyDesktop, > where we can rise above browser limitations. > > Best wishes > > Jeremy > > > On Mon, Jan 5, 2015 at 7:05 AM, andrew harrison <[email protected] <>> > wrote: > 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 > <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 > <http://groups.google.com/group/tiddlywiki>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > > -- > Jeremy Ruston > mailto:[email protected] <> > > -- > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/tiddlywiki > <https://groups.google.com/group/tiddlywiki>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/1b3a6b91-f007-459d-8175-daa7a93a8093%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/1b3a6b91-f007-459d-8175-daa7a93a8093%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > -- > You received this message because you are subscribed to a topic in the Google > Groups "TiddlyWiki" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/tiddlywiki/ebR_tUN0Uqg/unsubscribe > <https://groups.google.com/d/topic/tiddlywiki/ebR_tUN0Uqg/unsubscribe>. > To unsubscribe from this group and all its topics, send an email to > [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/tiddlywiki > <https://groups.google.com/group/tiddlywiki>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/cedo9e27mkxfqgi5m2u1vvn4.1466820973513%40email.android.com > > <https://groups.google.com/d/msgid/tiddlywiki/cedo9e27mkxfqgi5m2u1vvn4.1466820973513%40email.android.com?utm_medium=email&utm_source=footer>. > > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > -- > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/tiddlywiki > <https://groups.google.com/group/tiddlywiki>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/CAPkzo7rwZnWD1DfCk4vMWNuzMxTwYL8BTtwMBMdtXscZr7NoWQ%40mail.gmail.com > > <https://groups.google.com/d/msgid/tiddlywiki/CAPkzo7rwZnWD1DfCk4vMWNuzMxTwYL8BTtwMBMdtXscZr7NoWQ%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CF149354-F0FB-46CD-8935-E2D70FD7D610%40gmail.com. For more options, visit https://groups.google.com/d/optout.

