(This discussion was started on the User list thread - see history below, which has been shortened/edited)

OK, so it looks like the FCKeditor creates invalid html when lists are created along with text outside the lists (see below for example html). A key portion of the problem is that the text itself is not wrapped in P tags, and from the FCK site it looks like there is a switch to toggle the 'enter = br vs enter = p tag' behavior. I looked around in the configuration files for FCK and found this setting in /author/admindocroot/fckeditor/fckconfig.js :

FCKConfig.UseBROnCarriageReturn    = false ;

...which I would say the FCK editor is ignoring because when I press enter in the editor I get BR tags, not P tags. I can't seem to find this setting overridden in any of the custom settings files either, located in /author/admindocroot/fckeditor/custom/config/. Is something else going on in the FCK config (other files other places), or is FCK for some reason ignoring these settings? And has anyone seen FCK create valid html when text + lists are involved, using some combination of config settings?

Thanks,

Eric Everman




On Oct 2, 2005, at 7:38 PM, Alexandru Popescu wrote:

I have re-read your previous message and indeed it makes sense :-) (sorry, kinnda of tired). While I understand your point this seems to me an issue related to the Rich Text Editor which is a 3rd party and not to Magnolia itself. Probably a better place to discuss this is on their forum.


./alex
--
.w( the_mindstorm )p.




#: Eric Everman changed the world a bit at a time by saying on 10/3/2005 12:47 AM :#


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