This issue has been created
There are 3 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d6214e5e-bc80-4446-b67e-ba21f6998a6a XWIKI-25404 In Progress

Polish code block integration in BlockNote

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-a08efb1a-ea00-4e77-9ae8-99e781447e1c Marius Dumitru Florea created this issue on 19/Oct/26 12:21
 
Summary: Polish code block integration in BlockNote
Issue Type: cid:jira-generated-image-avatar-d6214e5e-bc80-4446-b67e-ba21f6998a6a Bug
Affects Versions: 18.9.0-rc-1
Assignee: Unassigned
Components: BlockNote
Created: 19/Oct/26 12:20
Priority: cid:jira-generated-image-static-major-e1875829-92f9-4230-a505-0b14be134061 Major
Reporter: Marius Dumitru Florea
Description:

The following problems were found with the BlockNote code blocks while documenting XWIKI-25210:

  • Typing ``` followed by a space creates a code block with an empty language: the language selector shows no value and the code block is saved as {{code language=""}}. Typing ```python followed by a space, or inserting the code block from the slash menu, works fine.
  • The "Code Block" entry of the slash menu displays the CTRL-ALT-C shortcut, but pressing it has no effect.
  • Typing letters while the language selector of a code block has the keyboard focus triggers the XWiki keyboard shortcuts (it opened the class editor in my test), instead of selecting the matching language.
  • In the in-place edit mode, on a page with little content, the slash menu opens above the caret and is clipped, showing only part of its first entry.
  • The language selector uses the language ids of the BlockNote syntax highlighter (Shiki), which are saved as they are in the language parameter of the code macro. Some of them may not be recognized by the code macro (Pygments) in view mode, e.g. "Shell" is saved as language="shellscript". Not verified yet.

PS: This post was co-written with Claude Code.

 
 

3 updates

 
cid:jira-generated-image-avatar-a08efb1a-ea00-4e77-9ae8-99e781447e1c Changes by Marius Dumitru Florea on 19/Oct/26 12:21
 
Fix Version: 18.9.0
Assignee: Marius Dumitru Florea
Status: Open In Progress