This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-2c686af9-91d5-43cf-84fb-538ca6926015 XWIKI-24014 Open

I can make the first column a header but it doesn't get saved

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-8457944a-77e1-4eb6-844b-83926b33d49d Marius Dumitru Florea created this issue on 12/Feb/26 19:36
 
Summary: I can make the first column a header but it doesn't get saved
Issue Type: cid:jira-generated-image-avatar-2c686af9-91d5-43cf-84fb-538ca6926015 Bug
Affects Versions: 18.0.1
Assignee: Unassigned
Components: Blocknote
Created: 12/Feb/26 19:36
Priority: cid:jira-generated-image-static-major-16336a82-4358-454c-86ec-a6a5df7cde48 Major
Reporter: Marius Dumitru Florea
Description:

Follow these steps to reproduce:

  • create a new empty page
  • insert a table
  • fill the table cells with some values
  • open the menu for the first column
  • click on "Header column"
  • save

Even if the table looks fine in edit mode, and I can also make both the first column and the first row headers, which is nice, on save this information is lost. Only the first row remains as header, but I'm not surprised given XWIKI-24013.

Note that fixing this issue will require some changes to the UniAst syntax and its parser / renderer on the server side. Currently, UniAst defines tables like this:

{
  type: "table";
  columns: TableColumn[];
  rows: TableCell[][];
  styles: BlockStyles;
}

type TableColumn = { headerCell?: TableCell; widthPx?: number };

type TableCell = {
  content: InlineContent[];
  styles: BlockStyles;
  rowSpan?: number;
  colSpan?: number;
};

Which means UniAst supports a single table header, and you can't specify if it's a row or column. It's a row, the first one, all the time. But it looks like BlockNote supports having both a header column and a header row. If that is the case then we'll have to update UniAst.