Description
When using the GUI editor, previewing can cause the contents of a newly-created bulleted list to be deleted.
Steps to reproduce
- Edit a page using the GUI editor
- Create a blank line, and use the button to create a new bulleted list
- Type some text for the bullet, then click the preview button.
- Go back into the editor control, and you will notice that your text has disappeared.
Example
Below is a bulleted list created in GUI mode. The first line said Hello, the second said Good-bye. Previewed and then saved.
foo
- *
- Foo
- Bar
You might not be able to reproduce the bug several times if you stay in GUI mode. To get it systematically:
- Goto to text mode, remove all text and enter text on the first line
- Switch to GUI mode, create a second line, create a bullet with the button and add some text
Preview the page => the text on the bulleted line has disappeared -- JeanJacquesKahn 2006-06-16 15:40:00
Details
- This Wiki (1.5.3).
- Client: Windows XP / IE 6.0 - reproduced with IE 6 with latest fixes
- Can't reproduce it with Firefox 1.5.x nor with Mozilla 1.7.8. Can you?
Workaround
- Click the button to create a bulleted list
- Preview before adding any text
- It should be safe to add text at this point.
or:
- use a sane browser (e.g. firefox or mozilla)
Discussion
Does not affect lists that existed before going into the GUI editor, but wipes out any list created during the the current session.
Saving or trying to switch back to the text editor has the same effect as previewing. If previewing wipes out the text and you add it back, it seems to stick around after that. It only triggers when you create a new bulleted list where there was none.
UPDATE: Just reproduced this on the current release (1.5.3). I was not able to reproduce it on 1.5.2-rc2, but maybe I did something wrong (or maybe it was fixed in rc2 and got lost in release). This bug is alive and well. Re-opened. -- SteveDavison 2006-04-17 21:43:08
We either need more details about what goes wrong with IE (html level) or have some IE user fix it. -- ThomasWaldmann 2006-05-07 11:48:04
(JenniferVanderputten): I can reproduce this regularly -- let me know what else I can do to get the html information you need (special debug modes?). Just using the "source" button to view html source before and after hitting preview, I get this:
{{{Before: <ul><li><div class="line874">one</div></li><li><div class="line874">two</div></li><li><div class="line874">three</div></li></ul>}}}
{{{After: <ul><li></li><li></li><li></li></ul>}}}
(FernandoCorreia) This problem also occurs on moin-desktop-1.5.3-1.exe and on the currently online version at http://moinmoin.wikiwikiweb.de. This is very annoying, since it leads to loss of work. I'm having second thoughts about using MoinMoin in my workgroup, because if people lose work they won't accept using this wiki. And not being able to use the GUI Editor will also limit the acceptance of this application. (2006-06-01)
After financing the initial GUI integration, we have been delaying the deployment of the GUI wiki for months because of these bulleted text problems with IE. -- -- JeanJacquesKahn 2006-06-16 15:40:00
Quoting the code:
result.append(self.formatter.paragraph(1, css_class="line874"))
This is the only place we emit class="line874" - as a paragraph tag <p class="line874">...</p>.
How comes we get back unexpected div from IE with this class? Does this make any sense? -- ThomasWaldmann 2006-06-19 08:03:04
Plan
- Priority:
Assigned to: ThomasWaldmann
- Status: fixed in moin 1.6 and 1.5 branch
Messages
Since this is fixed in 1.5 branch will it be available in an upcoming release (e.g. 1.5.4)? If so, is there any rough idea when? Thanks --JenniferVanderputten
Soon (I guess within 1-2 weeks). I think we have enough fixes to make a new (and final) 1.5.4 release. -- ThomasWaldmann 2006-06-20 22:18:46
Thank you thank you thank you thank you! -- JenniferVanderputten
Hey, I was going to say that! -- SteveDavison 2006-06-21 21:58:14