Copy to clipboard button?

116 views
Skip to first unread message

hubertgk

unread,
Feb 5, 2018, 5:19:56 AM2/5/18
to TiddlyWiki
Hi all,

The following example is available in the documentation:

<$button message="tm-copy-to-clipboard" param=<<now>>>
Copy date to clipboard
</$button>

On button press, the copy operation should either succeed or fail (a notification should be shown in either case) but when I try it nothing is happening and the clipboard value (checked on paste) doesn't change.

Would anyone have any suggestions?

Thanks!

PMario

unread,
Feb 5, 2018, 6:29:09 AM2/5/18
to TiddlyWiki
Hi Hubert,

It seems this function is part of the upcoming version 5.1.16 ... see: https://tiddlywiki.com/prerelease/
The code works there.

It doesn't work with tiddlywiki.com which is v5.1.15 atm
-m

hubertgk

unread,
Feb 5, 2018, 6:36:32 AM2/5/18
to TiddlyWiki
OK, that's great, I'll wait. Thanks for letting me know!

@TiddlyTweeter

unread,
Feb 5, 2018, 6:45:31 AM2/5/18
to TiddlyWiki
Ciao PMario

Right the 5.1.16 works great for me.

NOTE: The Examples are slightly confusing in that you have a "Try it" button that actually only reveals the "copy to clipboard" line. So to "try it" you have to click twice. Maybe the "Try it" button is not needed in those examples. Just the "copy to clipboard" line? Couldn't that just be "Try it"

Best wishes
Josiah

PMario

unread,
Feb 5, 2018, 6:58:23 AM2/5/18
to TiddlyWiki
Hi Josiah,

I did create an issue: https://github.com/Jermolene/TiddlyWiki5/issues/3107

-m

ste...@gmail.com

unread,
Feb 5, 2018, 10:14:52 AM2/5/18
to TiddlyWiki

On Monday, February 5, 2018 at 12:29:09 PM UTC+1, PMario wrote:

It seems this function is part of the upcoming version 5.1.16 ... see: https://tiddlywiki.com/prerelease/
The code works there.

Great! I just downloaded the prerelease because I needed this feature for a particular purpose (using it standalone, for now - waiting for the offical release before I include it into my existing tiddlywikis).

Stef
Reply all
Reply to author
Forward
0 new messages