Not logged in. · Lost password · Register
Forum: General Help and Support Plugins Plugin Wishlist RSS
Copy text to the clipboard with a click.
Avatar
diltigug #1
Member since Feb 2017 · 127 posts
Group memberships: Members
Show profile · Link to this post
Subject: Copy text to the clipboard with a click.
Hello,

I am looking for a plugin to generate a button with which you can copy text into the clipboard.

We introduce in our Wiki u. a. Various text modules, network paths, etc. available that you can mark and copy.
Now I'm looking for a way how to take a defined text with a click on the clipboard.
A feature like google translate. There you can simply copy the translated text into the clipboard with a click on a button.

I imagine it like this:
When creating the text module in the editor, you mark the text to be copied and you have in the editor a function / button that inserts the appropriate functionality:
The text is displayed formatted in the frontend (eg with colored background) and a corresponding button (copy to clipboard) is inserted behind it.

Is such a function as a plugin for DokuWiki possible, or is there possibly even a plugin which can do this?

I myself am not capable of programming, but maybe someone finds the idea interesting and wants to make such a plugin. ;-)

diltigug
Avatar
ljhedland #2
Member since Mar 2018 · 1 post
Group memberships: Members
Show profile · Link to this post
I think this is the answer to your request. I use it on my Wiki. Works fine as long as flash isn't being blocked.

https://www.dokuwiki.org/plugin:clippy
Avatar
diltigug #3
Member since Feb 2017 · 127 posts
Group memberships: Members
Show profile · Link to this post
Hello,
Thanks for the tip. I tested the plugin and basically it does exactly what I imagined. Only, unfortunately, it also copies the dokuwiki syntax. But that's probably hard to change, I think.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2018-07-16, 18:24:13 (UTC +02:00)