thesilwar/flarum-ext-copy-code-to-clipboard

Adds a copy button to html code tags, allowing users to easily copy the code content.

Maintainers

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

Transparency log

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v2.3.0 2026-07-29 03:35 UTC

README

license packagist changelog

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.