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%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Click-to-copy text via <copy>, toolbar button, configurable look (en/de). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
| conf | ||
| images | ||
| lang | ||
| .gitignore | ||
| action.php | ||
| LICENSE | ||
| plugin.info.txt | ||
| README.md | ||
| script.js | ||
| style.less | ||
| syntax.php | ||
SimpleCopyPaste
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
codework 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 anexecCommandfallback 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
codefunktionieren 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, mitexecCommand-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