Hi - Sorry to keep posting about invalid html...

If a list is used in the RichText editor (Magnolia 2.1), markup like this is generated (using square brackets instead of angle):

------------ html snippet ---------------
Some Text[br/]
[ul]
    [li] one [li]
     [li] two [li]
[/ul]
More Text
-------------------------------------------

The problem is that the UL tag is a block level element and can *never* appear as a sibling to text content. There is no 'wrapper' tag that can be wrapped around the entire paragraph to fix it, and its invalid HTML for any standard (strict/transitional HTML and XHTML).

The only way I can see to fix this is to make the RichText editor's javascript format the text similar to this, with P tags:

------------ html snippet ---------------
[p]Some Text[/p]
[ul]
    [li] one [li]
     [li] two [li]
[/ul]
[p]More Text[/p]
-------------------------------------------

This seems like it would be a fairly major re-write of the RichText javascript. Thoughts? Suggestions?

Thanks,

Eric Everman

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to