468cf81fd2
Setting cookies means that they're sent in the request headers for every HTTP request. This will have a (tiny) impact on performance, plus it can raise privacy concerns. Using localStorage is more appropriate for this use case. This commit includes migration logic for any previously-saved values. Previously the cookies were set to last for the 'session'. localStorage doesn't have an expiration mechanism, so this commit implements a 7-day expiration on the values. |
||
---|---|---|
common | ||
javascripts/discourse | ||
locales | ||
mobile | ||
.eslintrc | ||
.gitignore | ||
LICENSE | ||
README.md | ||
about.json | ||
package.json | ||
yarn.lock |
README.md
discourse-placeholder-theme-component
https://meta.discourse.org/t/discourse-placeholder-theme-component/113533
Usage
[wrap=placeholder key=NAME][/wrap]
[wrap=placeholder key=COUNTRY default=FR][/wrap]
[wrap=placeholder key=SECRET description="Used to open the bank"][/wrap]
I'm =NAME=, I come from =COUNTRY= let me tell you my secret: =SECRET==
Feedback
If you have issues or suggestions for the plugin, please bring them up on Discourse Meta.