27th January 2025 at 1:35pm
The copy-to-clipboard macro displays a button that copies specified text to the clipboard. A notification is displayed if the operation is successful; some browsers do not permit the operation.
Parameters
- src
- The text to be copied to the clipboard
- class
- Optional CSS classes to be assigned to the button (defaults to
tc-btn-invisible
) - style
- Optional CSS styles to be assigned to the button
- type
- New in v5.3.7 MIME type of the text to be copied, defaults to
text/plain
- plain
- New in v5.3.7 Additional plain text to be copied when
type
attribute isn'ttext/plain