I know this is a very old extension, but is there any possibility it could get updated? It's really the only option for using spoiler tags with vanilla.
@WayGroovy IIRC, the BBCode spoiler tag works in any formatter if you have the spoiler plugin enabled. The issue is the button only being displayed when the formatter is set to BBCode.
I got the spoiler button to display with button bar and markdown formatting. You need to modify /plugins/ButtonBar/js/buttonbar.js.
Comment out line 332. Replace lines 628 and 629 with $(TextArea).insertRoundTag('spoiler',{opener: '[', closer: ']'});.
This should enable your spoiler button on ButtonBar.
Spoiler Plugin is not good. If content has /, ]* etc then its fall. Its stop where that symbol comes. Also u can't hide content. If u click on show then u can't hide it again. so not good plugin. Its uses preg_replace.
somehow added Hide text its only worked on double click.
Comments
Vanilla Forums COO [GitHub, Twitter, About.me]
Sorry for pasting an image, but when pasted in plain-text here, it doesn't look quite like that.
I'll have to look at this.
Vanilla Forums COO [GitHub, Twitter, About.me]
I would also like to find out how to use this plugin using Markdown. Any new updates @Tim ?
I know this is a very old extension, but is there any possibility it could get updated? It's really the only option for using spoiler tags with vanilla.
Man. I really wanted to use this, but the community i'm in is used to bbcode & spoiler/nsfw tags. I can't seem to get them to work friendly together.
@WayGroovy IIRC, the BBCode spoiler tag works in any formatter if you have the spoiler plugin enabled. The issue is the button only being displayed when the formatter is set to BBCode.
I got the spoiler button to display with button bar and markdown formatting. You need to modify
/plugins/ButtonBar/js/buttonbar.js
.Comment out line 332. Replace lines 628 and 629 with
$(TextArea).insertRoundTag('spoiler',{opener: '[', closer: ']'});
.This should enable your spoiler button on ButtonBar.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Spoiler Plugin is not good. If content has /, ]* etc then its fall. Its stop where that symbol comes. Also u can't hide content. If u click on show then u can't hide it again. so not good plugin. Its uses preg_replace.
somehow added Hide text its only worked on double click.