discourse/plugins/discourse-details
Jarek Radosz a17d54d0bf
DEV: De-arrowify tests (#11068)
Using arrow functions changes `this` context, which is undesired in tests, e.g. it makes it impossible to setup things like pretender (`this.server`) in `beforeEach` hooks.

Ember guides always use classic functions in examples (e.g. https://guides.emberjs.com/release/testing/test-types/), and that's what it uses in its own test suite, as do various addons and ember apps.

It was also already used in Discourse where `this` was required. Moving forward, it will be needed in more places as we migrate toward ember-cli.

(I might later add a custom rule to eslint-discourse-ember to enforce this)
2020-10-30 17:37:32 +01:00
..
assets FIX: pretty text allow list (#10977) 2020-10-28 13:22:06 +11:00
config Update translations 2020-10-13 15:40:37 +02:00
spec/components FIX: Get only the correct collapse title in emails (#10228) 2020-07-13 18:49:36 -07:00
test/javascripts DEV: De-arrowify tests (#11068) 2020-10-30 17:37:32 +01:00
LICENSE add discourse-details plugin 2015-11-30 11:32:01 +01:00
plugin.rb DEV: Remove the <details> polyfill (#10260) 2020-07-20 13:18:00 +02:00
README.md for docs, normalize on space after code fence when specifying lang 2019-01-21 01:19:28 -08:00

discourse-details

HTML 5.1 <details> polyfill for Discourse.

NOTE: Does not work on IE9, but we don't support IE9 as of Jan 1 2016.

Usage

In your posts, surround text with [details=your summary] ... [/details]. For example:

   I watched the murder mystery on TV last night. [details=Who did it?]The butler did it[/details].

Installation

Follow our Install a Plugin howto, using git clone https://github.com/discourse/discourse-details.git as the plugin command.

Issues

If you have issues or suggestions for the plugin, please bring them up on Discourse Meta.

License

MIT