mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-06 18:12:46 +08:00
* Apply these rules to the display of all keyboard shortcuts in the app: * No shortcuts show a + between keys * On Windows and Linux, show Ctrl and Alt words, but show ⇧ for Shift * On macOS, show ⌃ for Control, ⌘ for Command, ⌥ for Option, and ⇧ for Shift * Use capital letters for the shortcut keys, e.g. Ctrl+S instead of Ctrl+s * Add a filter to the keyboard shortcut help modal to allow searching * Add aria-keyshortcuts attributes to the keyboard shortcuts in the composer toolbar and popup menu options * Adds Ctrl+Enter + Esc shortcuts for composer --------- Co-authored-by: Renato Atilio <renato@discourse.org> |
||
|---|---|---|
| .. | ||
| assets | ||
| config | ||
| spec | ||
| test/javascripts | ||
| plugin.rb | ||
| README.md | ||
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.ymlfile
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