This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-f34b6c5c-3642-407a-81e4-f92eb91f0047 XWIKI-24000 Open

BlockNote outputs default styles on save

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-fb33e2b1-9466-47b4-97cd-f905c209cc7d Marius Dumitru Florea created this issue on 10/Feb/26 16:38
 
Summary: BlockNote outputs default styles on save
Issue Type: cid:jira-generated-image-avatar-f34b6c5c-3642-407a-81e4-f92eb91f0047 Bug
Affects Versions: 18.1.0-rc-1
Assignee: Unassigned
Components: Blocknote
Created: 10/Feb/26 16:38
Priority: cid:jira-generated-image-static-major-4b3ff30b-4706-47c0-afb8-48c5834beef9 Major
Reporter: Marius Dumitru Florea
Description:

If you edit and save a page without making any change, the output XWiki syntax contains a bunch of CSS styles:

  • for paragraphs and headings:
    (% style="color:default;background-color:default;text-align:left" %)
    
  • for images:
    data-xwiki-image-style-alignment="start"
    

Ideally BlockNote shouldn't output default styles (that have not been applied explicitly by the user). If that's not possible, then we need to try to filter them out on save.