Collapsible Text
pukku - September 12, 2007 - 20:17
This input filter allows you to make sections of text collapsible, as you often see in forms.
As this is an input filter, it will only work where input filters are applied.
To make a section collapsible, surround it with [collapse] and [/collapse]. If you want the section to be collapsed initially, you should start with [collapse collapsed].
The "legend", or title, of the collapsed section will be taken from the first located header tag (<h1>, <h2>, …). You may have to modify the HTML filter to allow header tags. Generally, this filter should be placed after the HTML filter, as otherwise the HTML filter is likely to strip out all the HTML that it adds.
Example:
This is some text.
[collapse]
<h1>Hi!</h1>
This is some more text.
[/collapse]