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

Dividers can break the editor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Blocker
    • None
    • 18.0.0
    • Blocknote
    • None
    • Unknown

    Description

      Note: The affect version is inaccurate and must be refined.

      Reproduction steps:

      1. Type /div and insert a divider
      2. Observe the console.

      Expected

      If the divider (or any other concept) is not known, it is transparently ignored, possibly with a warning in the logs (or even in an alert).

      Actual

      An error is raised in the logs (see below), and more importantly the user is completly stuck as they can't save (unless they manage to understand what is the unsuported element to remove) and their only option is to close the tab.

      14:37:09.331 Uncaught Error: TODO: add support for BlockNote dividers to UniAst
          convertBlock index.es.js:193
          convertBlocks index.es.js:70
          n index.es.js:60
          ws index.es.js:18
          blocksToUniAst index.es.js:60
          u index.es.js:646
          f index.es.js:649
          Lodash 5
          onChange index.es.js:670
          onChange index.es.js:10008
          emit BlockNoteSchema-Bi-eeHal.js:1206
          emit BlockNoteSchema-Bi-eeHal.js:1206
          Tue blocknote.js:4908
          emit index.js:2919
          emit index.js:2919
          dispatchTransaction index.js:4944
          dispatch index.js:5752
          tX index.js:5122
          domObserver index.js:5319
          flush index.js:4736
          observer index.js:4580
          XZ index.js:4569
          $z index.js:5319
          createView index.js:4831
          mount index.js:4555
          TT blocknote.js:5866
          o React
          dl index.es.js:15671
          hb index.es.js:15929
          Rr index.es.js:16412
          hb index.es.js:15875
          Rr index.es.js:16412
          hb index.es.js:15875
          Rr index.es.js:16412
          hb index.es.js:15929
          Rr index.es.js:16412
          hb index.es.js:15875
          Rr index.es.js:16412
          hb index.es.js:15957
          Rr index.es.js:16412
          hb index.es.js:15957
          Rr index.es.js:16412
          hb index.es.js:15875
          Rr index.es.js:16412
          hb index.es.js:15957
          Rr index.es.js:16412
          hb index.es.js:15875
          Rr index.es.js:16412
          hb index.es.js:15875
          Rr index.es.js:16412
          hb index.es.js:15957
          Rr index.es.js:16412
          hb index.es.js:15875
          Rr index.es.js:16412
          hb index.es.js:15957
          Rr index.es.js:16412
          hb index.es.js:15875
          Rr index.es.js:16412
          hb index.es.js:15875
          Rr index.es.js:16412
          hb index.es.js:15908
          _b index.es.js:17535
          jb index.es.js:17459
          Ob index.es.js:17113
          Mb index.es.js:17048
          Xb index.es.js:17763
          Ee index.es.js:10165
      index.es.js:193:15
      

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: