SimpleCopyPaste adds a tag to DokuWiki. Clicking (or pressing Enter/Space on) the wrapped text copies it to the clipboard and shows a brief hint above it. Bold, italic, underline and code are allowed inside the tag. Typographic substitutions are disabled, so copied text such as --help stays exact. An editor toolbar button inserts the tag, and the look, hint colors, hint duration and button position are configurable in the config manager. Languages: English and German.
  • PHP 66.5%
  • JavaScript 23.2%
  • Less 10.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cblte 45fcebd668 Add SimpleCopyPaste DokuWiki plugin
Click-to-copy text via <copy>, toolbar button, configurable look (en/de).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 13:37:32 +01:00
conf Add SimpleCopyPaste DokuWiki plugin 2026-11-28 13:37:32 +01:00
images Add SimpleCopyPaste DokuWiki plugin 2026-11-28 13:37:32 +01:00
lang Add SimpleCopyPaste DokuWiki plugin 2026-11-28 13:37:32 +01:00
.gitignore Add SimpleCopyPaste DokuWiki plugin 2026-11-28 13:37:32 +01:00
action.php Add SimpleCopyPaste DokuWiki plugin 2026-11-28 13:37:32 +01:00
LICENSE Add SimpleCopyPaste DokuWiki plugin 2026-11-28 13:37:32 +01:00
plugin.info.txt Add SimpleCopyPaste DokuWiki plugin 2026-11-28 13:37:32 +01:00
README.md Add SimpleCopyPaste DokuWiki plugin 2026-11-28 13:37:32 +01:00
script.js Add SimpleCopyPaste DokuWiki plugin 2026-11-28 13:37:32 +01:00
style.less Add SimpleCopyPaste DokuWiki plugin 2026-11-28 13:37:32 +01:00
syntax.php Add SimpleCopyPaste DokuWiki plugin 2026-11-28 13:37:32 +01:00

SimpleCopyPaste

English · Deutsch

English

DokuWiki plugin. Text wrapped in <copy> is copied to the clipboard on click (or Enter/Space when focused). A short hint ("Copied!") appears above the text.

Install with <copy>npm install foo</copy> and run <copy>foo --help</copy>.
  • Bold, italic, underline and code work inside <copy>: <copy>**bold** //italic//</copy>.
  • Automatic replacements (typography like -- → –, smileys, quotes) and links are disabled inside <copy>, so the clipboard gets exactly what you typed.
  • Toolbar button: wraps the selection in <copy>…</copy>.
  • Uses navigator.clipboard, with an execCommand fallback for plain-http wikis.
  • Languages: English, German.

Settings (Configuration Manager)

Setting Default Meaning
toolbar_pos 4 Toolbar position: 0 first, 4 after the code button, -1 last
underline dashed Line under copyable text: dashed, dotted, solid, none
color empty Text color (#rgb / #rrggbb), empty = unchanged
hover_bg empty Background on hover/focus, empty = template default
hint_bg #2e7d32 Background of the hint
hint_text #ffffff Text color of the hint
hint_ms 1400 How long the hint stays visible (ms, min. 300)

Deutsch

DokuWiki-Plugin. Text in <copy> wird per Klick (oder Enter/Leertaste bei Fokus) in die Zwischenablage kopiert. Über dem Text erscheint kurz ein Hinweis („Kopiert!“).

Installiere mit <copy>npm install foo</copy> und starte <copy>foo --help</copy>.
  • Fett, kursiv, unterstrichen und code funktionieren in <copy>: <copy>**fett** //kursiv//</copy>.
  • Automatische Ersetzungen (Typografie wie -- → –, Smileys, Anführungszeichen) und Links sind in <copy> abgeschaltet, damit genau der getippte Text in der Zwischenablage landet.
  • Toolbar-Button: umschließt die Markierung mit <copy>…</copy>.
  • Nutzt navigator.clipboard, mit execCommand-Fallback für Wikis über http.
  • Sprachen: Englisch, Deutsch.

Einstellungen (Konfigurationsmanager)

Einstellung Standard Bedeutung
toolbar_pos 4 Toolbar-Position: 0 ganz vorn, 4 nach dem Code-Button, -1 ganz hinten
underline dashed Linie unter kopierbarem Text: gestrichelt, gepunktet, durchgezogen, keine
color leer Textfarbe (#rgb / #rrggbb), leer = unverändert
hover_bg leer Hintergrund bei Hover/Fokus, leer = Template-Standard
hint_bg #2e7d32 Hintergrund des Hinweises
hint_text #ffffff Textfarbe des Hinweises
hint_ms 1400 Wie lange der Hinweis sichtbar bleibt (ms, mind. 300)

License

MIT