Spoiler works again
-
wrote on 3 Feb 2022, 07:17 last edited by
I asked around a little in the NodeBB community and found a replacement for our spoiler plugin.
It's not as fancy as the old one (asynchronous loading of the content), so spoiler content may show up in previews, but at least it seems to work.
click to show -
wrote on 3 Feb 2022, 07:17 last edited by Klaus 2 Mar 2022, 08:47click to show
Yes it does. If you want to prevent that, a workaround would be to add another post after the one you want to hide. Or add at least two lines of non-hidden text before the spoiler. -
wrote on 3 Feb 2022, 11:16 last edited by
Nothing happens when I click the Show content button.
-
wrote on 3 Feb 2022, 11:39 last edited by
It works for me, iPad Safari
-
wrote on 3 Feb 2022, 11:40 last edited byclick to show
-
wrote on 3 Feb 2022, 11:53 last edited by
Works for me IOS safari
-
wrote on 3 Feb 2022, 13:11 last edited by Doctor Phibes 2 Mar 2022, 13:12click to show
-
click to showwrote on 3 Feb 2022, 13:29 last edited by George K 2 Mar 2022, 13:30
-
wrote on 3 Feb 2022, 14:05 last edited by
Any JavaScript programmers here? I think it wouldn't be too hard to change the spoiler plugin in such a way that the spoiler content is ROT13-encoded (say) and shows only up in mangled form in the preview but is then decoded when pressing on the button. The plugin is only around 50 lines of JavaScript code, see here.
-
wrote on 3 Feb 2022, 16:24 last edited by
@Klaus Did we ever have a spoiler module that handles the topic list preview correctly? If we can look at the code for that old spoiler module, maybe we can find the snippet that deals with topic list preview and adapt that just snippet to the new spoiler module.
-
@Klaus Did we ever have a spoiler module that handles the topic list preview correctly? If we can look at the code for that old spoiler module, maybe we can find the snippet that deals with topic list preview and adapt that just snippet to the new spoiler module.
wrote on 3 Feb 2022, 16:33 last edited by