[[TW5]] Copy plugin

142 views
Skip to first unread message

Andrew

unread,
Aug 6, 2015, 2:21:19 AM8/6/15
to TiddlyWiki

Hello everyone,

    I'd like to present my first plugin. Let me know what you think.

    With this Copy plugin it will allow for copy to clipboard in most major browsers. This button will copy HTML (i.e., you can paste results into a WSIWYG editor), and so far it has been tested in Google Chrome 43+ on desktop, tablet and android phone and Internet Explorer 11 on a desktop computer. It can be called by transcluding a tiddler and using the copy template. Example usage: {{Tiddler title to transclude||copy}}. This is fundamentally different from other methods, as the browser is actually visibly selecting the content.

    Please check it out. Any feedback is welcome.


Thanks

 

Mat

unread,
Aug 6, 2015, 3:48:22 AM8/6/15
to TiddlyWiki
Thanks for sharing Andrew!

Forgive my slow brain... but how does this differ from merely selecting the text (in tiddler view mode) and CtrlC+CtrlV into the WYSIWYG editor? I seem to get the same result when doing this (into LibreOffice), which is to say in both cases I get italics transferred but e.g bold or @@color:red; foo@@ does not seem to transfer.

<:-)

Andrew

unread,
Aug 6, 2015, 9:19:11 AM8/6/15
to TiddlyWiki
Thanks for asking Mat.
Sometimes precision copying of specific text or even hyperlinks is hard to do on a bus or in a subway like on my phone or if you have an example programming text that you want to offer easy copying. My favorite is the ability to copy pretty links to the clipboard with precision and accuracy. With this button I can copy a pretty link faster then i can with press and hold on my phone or if I use the keyboard. Mostly, I predict that soon, the keyboard will be replaced by touch screen and voice response. I am very interested in your failed copy attempt. Please advise which browser and version. And thank you soooo much for your valuable time.

Mat

unread,
Aug 7, 2015, 12:06:27 PM8/7/15
to TiddlyWiki
Hi again Andrew

> I am very interested in your failed copy attempt. Please advise which browser and version.

 Ok, in chrome 43.0.2357.134 m I get it to copy. But pasting it into LibreOffice Writer  4.3.4.1 (that is probably old) gives a text that by default seems bold which makes my manually added boldness to specific words not viewable. And the @@color:yellow; foobar@@ does not seem to transfer.

In FF 39.0, clicking the copy icon results in Internal JavaScript Error so I can't tell how it would look pasted....

<:-)

Andrew

unread,
Aug 8, 2015, 5:29:16 AM8/8/15
to TiddlyWiki
Hi Mat,
     Thank you again for your feedback. I have added an error catch for that error but regrettably the feature wont be available until FF 41 in September. I guess FF isn't as forward thinking as Chrome or Internet Explorer. I also haven't figured out how to unselect text in FF yet either. Also, LibreOffice Writer 4.3.4.1 sounds like it is not fully WYSIWYG.
Reply all
Reply to author
Forward
0 new messages