Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
18.5.0
-
None
-
Unknown
-
Description
Have XWiki Jetty/HSQLDB 18.5.0 with the experimental BlockNote editor installed. Configure BlockNote as the default editor.
Steps to reproduce:
- Create a level 1 numbered list item.
- Press Enter, and press Tab to start creating a level 2 numbered list item.
- Do not create the level 2 item content.
- Instead, create a normal paragraph.
- Save the page.
- Edit the page again with BlockNote.
Alternative to steps, use below wiki syntax as example.
1. ((( List one (% style="color:default;background-color:default;text-align:left" %) some text ))) (% style="color:default;background-color:default;text-align:left" %) Lorem ipsum dolor sit amet, consectetur adipiscing elit (% style="color:default;background-color:default;text-align:left" %)
The list item contains regular paragraph content some text inside the list item block. When BlockNote tries to reload the page, it fails with:
Failed to load document: Error: Only sub-lists are allowed inside list items in BlockNote
Only editing in wiki mode and correcting the line or disabling BlockNote and correcting the bad content solves the problem of further editing BlockNote.