This issue has been created
There is 1 update.
 
 
Cristal / cid:jira-generated-image-avatar-1f3bc8f5-82ed-43aa-a969-a4f3e9f6c080 CRISTAL-543 Open

Make blocknote-headless compatible with React 17+

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-03d0b2af-a7d2-4303-9ad5-a3dc72180f1d Manuel Leduc created this issue on 28/May/25 11:41
 
Summary: Make blocknote-headless compatible with React 17+
Issue Type: cid:jira-generated-image-avatar-1f3bc8f5-82ed-43aa-a969-a4f3e9f6c080 Task
Affects Versions: 0.17
Assignee: Unassigned
Components: Editor - Blocknote
Created: 28/May/25 11:41
Priority: cid:jira-generated-image-static-major-a47dbb2f-c658-4c41-8058-306afaab2fb4 Major
Reporter: Manuel Leduc
Description:

As reported by Marius Dumitru Florea, we are currently explicitly importing React in blocknote-headless.

 

Copy of the conversation:
My feeling is that https://unpkg.com/@xwiki/cristal-editors-blocknote-headless@0.17.0/dist/index.es.js is not properly built. I mean, those React.createElement should not be there. Based on https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html this looks like the output of the old (classic) jsx transformation (from before React 17), but we're using React 19 so I'm assuming the new jsx transformation should be used, which produces something like _jsx('h1' instead of React.createElement('h1'
https://matrix.xwiki.com/_matrix/media/v3/thumbnail/matrix.xwiki.com/2025-05-28_rmBNfXVWJzuKhZlO?width=200&height=200&method=scale&allow_redirect=true

Access to the full conversation: https://matrix.to/#/!YVNiDFxizGkLYxwqOA:matrix.xwiki.com/$jKOvdOFNCsMnZjLghaJ3aFOTRRWLXbi1-XewfWaQTBg?via=matrix.xwiki.com&via=matrix.org
 

 
 

1 update

 
cid:jira-generated-image-avatar-03d0b2af-a7d2-4303-9ad5-a3dc72180f1d Changes by Manuel Leduc on 28/May/25 11:41
 
Assignee: Manuel Leduc