2016-10-31, 12:27 AM
If i run this in a test html file it works as expected. In fact it works in jsfiddle
https://jsfiddle.net/fy452ct3/3/
when i add this as the replacement though in a custom mycode, for a regex of something like
Why does the text show all the time only in mybb, but toggles everywhere else?
Ive tried various methods to hide text in the spoiler123 section but to no avail
https://jsfiddle.net/fy452ct3/3/
<style>
.spoilerbutton123[value="Show"] + .spoiler123 > div {margin-top:-100%;}
</style>
<input class="spoilerbutton123" type="button" value="Show" onclick="this.value=this.value=='Show'?'Hide':'Show';">
<div class="spoiler123"><div>
$1
</div></div>
when i add this as the replacement though in a custom mycode, for a regex of something like
\[test\](.*?)\[/test\]
It shows the hidden text all the time, while the button toggles as expected. Why does the text show all the time only in mybb, but toggles everywhere else?
Ive tried various methods to hide text in the spoiler123 section but to no avail