Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Creating a node with spoilers is a challenge

by talexb (Canon)
on Oct 04, 2013 at 15:38 UTC ( #1056899=monkdiscuss: print w/ replies, xml ) Need Help??

A slightly different problem than my previous post .. creating a post with the spoiler tags already in place means that, after a preview, the spoiler is .. hidden. And if I click on the link to reveal the spoilers, my post disappears (yay for the Back button).

No problem, I ended up replacing the spoiler tags with text like spoiler here soon, and made sure to put the spoiler tags back in once I as done editing.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Comment on Creating a node with spoilers is a challenge
Download Code
Re: Creating a node with spoilers is a challenge
by kcott (Abbot) on Oct 05, 2013 at 05:31 UTC

    G'day Alex,

    You're right: this is a minor annoyance. I usually just preview without the 'spoiler' tags (or placeholders for them). When I'm happy with the post, I add the tags and preview again.

    When previewing a post with 'readmore' tags, the markup looks like this:

    <div class="readmore"> ... </div>

    Perhaps something similar (with class="spoiler") would be appropriate for 'spoiler' tags.

    -- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://1056899]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (13)
As of 2014-09-22 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (200 votes), past polls