For example, I have the tag to be like this: (spoiler={option}){content}{/spoiler}
On the first attempt to make a spoiler content it works perfectly fine, giving me this as a result:
"title" show/hide button
*note, i can have whatever text i want to be in the spot of "title" without changing the code.
Then when I go in and edit the content and hit complete edit, the tags changed itself to this:
(spoiler=title=title)content(/spoiler=title).
i want to be able to use the spoiler effectively without changing the tags each time i edit the content.
below is the replacement code i have for my spoiler, thanks in advance for the help.
<div style="margin:20px; margin-top:5px"><div class="quotetitle"><b>{option}:</b> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" /></div><div class="quotecontent"><div style="display: none;">{content}</div></div></div>
















