This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-72c6a024-4368-4b2d-962c-68e95e3bc27e XWIKI-24015 Open

Image alt and height parameters are lost on save

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-8f6c68c2-e4c0-4a63-aa8b-60fdc271f16d Marius Dumitru Florea created this issue on 12/Feb/26 20:28
 
Summary: Image alt and height parameters are lost on save
Issue Type: cid:jira-generated-image-avatar-72c6a024-4368-4b2d-962c-68e95e3bc27e Bug
Affects Versions: 18.0.1
Assignee: Unassigned
Components: Blocknote
Created: 12/Feb/26 20:28
Priority: cid:jira-generated-image-static-major-5bdf2504-acd6-4737-a947-666e21c7c2ee Major
Reporter: Marius Dumitru Florea
Description:

Follow these steps to reproduce

  • create a page with this content:
    [[Carol>>image:Path.To.Carol@avatar.png||alt="Carol's avatar" data-xwiki-image-style-alignment="center" width="150" height="100"]]
    
  • edit the page with BlockNote
  • the input UniAst syntax is:
    {
      "blocks" : [ {
        "type" : "image",
        "styles" : {
          "alignment" : "center"
        },
        "target" : {
          "type" : "internal",
          "rawReference" : "Path.To.Carol@avatar.png"
        },
        "alt" : "Carol's avatar",
        "widthPx" : 150,
        "heightPx" : 100,
        "caption" : "Carol"
      } ]
    }
    
  • save
  • the output UniAst syntax is:
    {
      "blocks" : [ {
        "type" : "image",
        "target" : {
          "type" : "external",
          "url" : "Path.To.Carol@avatar.png"
        },
        "caption" : "Carol",
        "widthPx" : 150,
        "styles" : {
          "alignment" : "center"
        }
      } ]
    }
    

As you can see the alt and height parameters are lost.