Files
discourse/plugins/spoiler-alert
Renato Atilio 6b748b6e2a FIX: rich editor spoiler on firefox (#36378)
Blurred spoiler's default styles set `user-select: none`, which makes
Firefox treat it as non-editable of sorts (can't click on it to select,
can't navigate it with the keyboard).

This reverts this style when inside the ProseMirror editor.
2025-12-02 09:46:39 -03:00
..
2025-09-29 10:26:53 +02:00

discourse-spoiler-alert

https://meta.discourse.org/t/discourse-spoiler-alert/12650/

Spoiler plugin for Discourse highly inspired by the spoiler-alert jQuery plugin.

Usage

In your posts, surround text or images with [spoiler] ... [/spoiler]. For example:

I watched the murder mystery on TV last night. [spoiler]The butler did it[/spoiler].

Installation

  • Add the plugin's repo url to your container's app.yml file
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
  • Rebuild the container
cd /var/discourse
./launcher rebuild app

License

MIT