This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-082cb741-61b4-414f-9d3e-b2631a9efab1 XWIKI-24549 Open

BlockNote fails to load page when a list item contains non-list block content

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-6ba6e17e-5433-4531-9c3e-2a7d75fe3d47 Nikita Petrenko created this issue on 03/Jul/26 14:11
 
Summary: BlockNote fails to load page when a list item contains non-list block content
Issue Type: cid:jira-generated-image-avatar-082cb741-61b4-414f-9d3e-b2631a9efab1 Bug
Affects Versions: 18.5.0
Assignee: Unassigned
Components: BlockNote
Created: 03/Jul/26 14:11
Priority: cid:jira-generated-image-static-major-2621d23a-ef7b-4d3e-8246-e54895d63dbe Major
Reporter: Nikita Petrenko
Description:

Have XWiki Jetty/HSQLDB 18.5.0 with the experimental BlockNote editor installed. Configure BlockNote as the default editor.

Steps to reproduce:

  1. Create a level 1 numbered list item.
  2. Press Enter, and press Tab to start creating a level 2 numbered list item.
  3. Do not create the level 2 item content.
  4. Instead, create a normal paragraph.
  5. Save the page.
  6. 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.