This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-8f7f47af-b48a-406f-a75d-6499cc4a1e25 XWIKI-24008 Open

Dividers can break the editor

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-ad85bbc1-58fe-4c77-913c-55337dbfd864 Manuel Leduc created this issue on 11/Feb/26 14:40
 
Summary: Dividers can break the editors
Issue Type: cid:jira-generated-image-avatar-8f7f47af-b48a-406f-a75d-6499cc4a1e25 Bug
Affects Versions: 18.0.0
Assignee: Unassigned
Components: Blocknote
Created: 11/Feb/26 14:40
Priority: cid:jira-generated-image-static-blocker-5978c090-18c3-4c15-a047-4a1e59bea30d Blocker
Reporter: Manuel Leduc
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
 
 

1 update

 
cid:jira-generated-image-avatar-ad85bbc1-58fe-4c77-913c-55337dbfd864 Changes by Manuel Leduc on 11/Feb/26 14:42
 
Summary: Dividers can break the editors editor