On Aug 6, 2009, at 11:49 AM, Vincent Massol wrote:
On Aug 6, 2009, at 11:34 AM, Guillaume Lerouge wrote:
Hi Stevens,
On Thu, Aug 6, 2009 at 11:25 AM, Steven Calkins < [email protected]> wrote:
Dear All,
Code like the following is totally removed in the XWIKI WYSIWYG editor when the information is saved:
"<ol><li>Item 1 characteristics: <ul> <li>Item 1, bullet 1</li> <li>Item 1, bullet 2</li> <li>Item 1, bullet 3</li> </ul> </li> <li>Item 2 characteristics: <ul> <li>Item 2, bullet 1</li> <li>Item 2, bullet 2</li> </ul> </li> <li>Item 3 characteristics: <ul> <li>Item 3, bullet 1</li> </ul> </li> </ol>"
It important to never save such HTML snippets in the WYSIWYG editor. And anyone who follows you and edits the file unknowingly in WYSIWYG mode will remove the elements as well. It would be nice if the developers tweak the editors to convert such code in the background to a corresponding wiki format.
Greetings, Steven Calkins
Which version of XWiki Enterprise are you using?
If you're using XE 1.9 / pages in XWiki 2.0 syntax you can enclose such code in a HTML macro:
{{html}} HTML code goes here {{/html}}
This will protect your code when saving the page and make sure it gets displayed.
However if you type it directly it should be displayed as you type it and not discarded. This looks like a bug. Anca/Marius, is that something known? Do we have a jira for this?
oh wait... Steven was using the old wysiwyg editor it seems.... -Vincent