Copy-to-clipboard button in Tiddlywiki?

482 views
Skip to first unread message

Ilmari Kumpula

unread,
Aug 9, 2016, 1:38:45 AM8/9/16
to TiddlyWiki
Hello!

I'm trying to create a copy-to-clipboard button for my company's tiddlywiki. I have tried with multiple google solutions like clipboard.js and most recently with this code (found on google!):

<input id="copyTarget" value="Some initial text"> <button id="copyButton">Copy</button><br><br>
<span id="copyTarget2">Some Other Text</span> <button id="copyButton2">Copy</button><br><br>
<input id="pasteTarget"> Click in this Field and hit Ctrl+V to see what is on clipboard<br><br>
<span id="msg"></span><br>

When i paste this into my Tiddlywiki and i try to use it, it gives me the following: "<input id="copyTarget" value="Some initial text"> <button id="copyButton">Copy</button><br><br> <span id="copyTarget2">Some Other Text</span> <button id="copyButton2">Copy</button><br><br> <input id="pasteTarget"> Click in this Field and hit Ctrl+V to see what is on clipboard<br><br> <span id="msg"></span><br>"

This is of course a bit of the code that is already in the Wiki. I've also tried wrapping the code in <html>....<html>, but that didn't work either.

Is there an easier way to create this function into tiddlywiki?

Thanks!

HC Haase

unread,
Aug 9, 2016, 5:05:47 AM8/9/16
to TiddlyWiki
I can't help, but That could be a really nice feature.
What do you intent to clip? the source text (e.g. tw5 markup) or the rendered html (or maybe make that an option)??

Ilmari Kumpula

unread,
Aug 9, 2016, 6:08:12 AM8/9/16
to TiddlyWiki
I would need to copy-paste text. I work in a Service Desk and we need to constantly copy-paste something, eliminating that extra CTRL + C would be a great help.

I've been googling for a solution and many interesting solutions exist for this function, projects like: https://clipboardjs.com/ and http://zeroclipboard.org/ . However, my technical expertise is not enough to implement these into TiddlyWiki even though i have tried.

andrew

unread,
Aug 9, 2016, 9:46:52 AM8/9/16
to tiddl...@googlegroups.com
Check out 


Happy Connecting. Sent from my Sprint Samsung Galaxy S® 5
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/decc13f7-a491-4690-9e87-f931ec8006f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ilmari Kumpula

unread,
Aug 10, 2016, 4:17:11 AM8/10/16
to TiddlyWiki
Thanks for the link, i've implemented it in my Wiki and will use it if there is no better option. But i wouldn't want to create a bunch of small tiddlers. They are hard to upkeep and in my work, i need to upkeep information constantly.
Reply all
Reply to author
Forward
0 new messages