BBCode spoilers (with custom title support) with pure HTML and CSS.
- HTML5 only spoilers - no JS needed!
- Works with FriendsOfFlarum/nightmode
- Integrates with standard Flarum BBCode
- Supports all modern browsers (96.26% of web traffic)
Supports FriendsOfFlarum's Night Mode.
As this extension uses the
<summary> elements, this extension is compatible with all modern browsers with 96.26% support for web traffic.
Install with composer:
composer require flarumite/simple-spoilers:"*"
composer update flarumite/simple-spoilers php flarum cache:clear
Spoilers are available in two versions: normal and customised title. The normal spoilers use the values in the locale file as titles (button text), whereas the customised title version allows users to add their own title to replace the localised versions.
Putting spoilers inside spoilers even works!
Click to show
[spoiler] test [spoiler] embedded [spoiler] embedded [spoiler] embedded [/spoiler] [/spoiler] [/spoiler] [/spoiler]