Edit Sections Does Not Work In Div

Description

When I use a div to enclose a large section of my page (for style formatting), the edit-section function no longer recognises headings within it and claims that there are no sections to edit.
Source: http://community.wikidot.com/forum/t-50071/headers-and-css-classes

Surely this is a bug? I had foreseen using div sections extensively for different templates, but I don't want to have to go through each document adding a div in each section just so that wikidot can recognise headings properly.

How to Reproduce

I have a document structured like this:

[[div class="whatever"]]
Heading
Text

Heading
Text

Heading
Text
[[/div]]

And then press edit-sections, I get a pop-up window saying this:

There are no isolated sections to edit.

Browsers

Has bug

Works correctly

Workarounds

Contact

Rate this Bug

Rate the urgency of this bug. If you think it is more urgent and important than it's current rating suggests, rate it up.

rating: 0+x

Comments

Workaround
GabrysGabrys 1209754522|%e %b %Y, %H:%M %Z|agohover

Workaround would be

[div]
[include section-1]
[/div]
[div]
[include section-2]
[/div]
[div]
[include section-3]
[/div]

in section-N wiki-pages you can use headings and the "edit section" option.

Hope this helps till we get rid of this.

last edited on 1209755283|%e %b %Y, %H:%M %Z|agohover by Gabrys + show more
unfold Workaround by GabrysGabrys, 1209754522|%e %b %Y, %H:%M %Z|agohover
Re: Workaround
GabrysGabrys 1211614011|%e %b %Y, %H:%M %Z|agohover

Hey, this is probably the only working workaround, and this isn't going to work as you would like.

Edit section work for document section and not for some in-div sections, so this won't be 'fixed'.

unfold Re: Workaround by GabrysGabrys, 1211614011|%e %b %Y, %H:%M %Z|agohover
Add a new comment
page tags: bug div edit-sections
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.