Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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.

Replies are listed 'Best First'.
Re: Creating a node with spoilers is a challenge
by kcott (Chancellor) 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?
[holli]: are you sure? or are they mere prjections of my hallucinating mind?
shmem feels uneasy over his guess of the tune for silent night, perl 6 night
[holli]: https://www. youtube.com/watch? v=6H_9QEc6vA8
[holli]: meh, silent night
[holli]: also sad
[shmem]: halluzination beats newspaper in realism, sometimes

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-09-22 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (269 votes). Check out past polls.

    Notices?