thesilwar / flarum-ext-copy-code-to-clipboard
Adds a copy button to html code tags, allowing users to easily copy the code content.
Package info
github.com/thesilwar/flarum-ext-copy-code-to-clipboard
Language:TypeScript
Type:flarum-extension
pkg:composer/thesilwar/flarum-ext-copy-code-to-clipboard
Requires
- flarum/core: ^1.8 || ^2.0.0@beta
Conflicts
This package is not auto-updated.
Last update: 2026-08-13 22:44:33 UTC
README
Adds a copy button to html code tags, allowing users to easily copy the code content.
Maintained Flarum 1.8 and 2.x-compatible fork of Nearata/flarum-ext-copy-code-to-clipboard. Nearata remains credited as the original developer.
Compatibility
- Flarum 1.8, including the 1.8.14 and 1.8.16 test installations
- Flarum 2.0 release candidates and stable releases
The package ships separate frontend assets for Flarum 1 and Flarum 2. The matching asset is selected automatically at runtime. The modern Clipboard API is used in secure contexts, with a legacy copy fallback for HTTP installations.
Install
composer require thesilwar/flarum-ext-copy-code-to-clipboard
Remove the original nearata/flarum-ext-copy-code-to-clipboard package first
if it is installed. The two packages intentionally conflict because they
provide the same extension.
