Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-24001

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 18.0.1
    • Blocknote
    • None
    • Unknown

    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?

      Attachments

        Issue Links

          Activity

            People

              ClementEraud Clément Eraud
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: