This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-47f4f617-6996-4250-8346-d4d8c9eade9d XWIKI-24001 Open

Dividers (horizontal rule) are not saved and content after them is lost

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-35761ca5-0dd4-42df-9e76-e7d975e024ac Marius Dumitru Florea created this issue on 10/Feb/26 17:12
 
Summary: Dividers (horizontal rule) are not saved and content after them is lost
Issue Type: cid:jira-generated-image-avatar-47f4f617-6996-4250-8346-d4d8c9eade9d Bug
Affects Versions: 18.0.1
Assignee: Unassigned
Components: Blocknote
Created: 10/Feb/26 17:12
Priority: cid:jira-generated-image-static-major-1bdfeff7-8f74-4b58-8978-e7a4d8445247 Major
Reporter: Marius Dumitru Florea
Description:

Follow this steps to reproduce:

  • edit a page with BlockNote
  • insert a Divider between two pagraphs
  • save and view

The divider (horizontal rule) is not saved. Moreover, the paragraph that follows the divider is lost. On the JavaScript console I can see this error:

Uncaught (in promise) Error: TODO: add support for BlockNote dividers to UniAst
    convertBlock bn-to-uniast.ts:292

which is unexpected to me, since UniAst supports a break block that the parser / renderer on the server side is properly mapping to the "horizontal line" XDOM block. I guess the only missing part is converting from the BlockNote divider to the UniAst "break" block?