Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
18.0.1
-
None
-
Unknown
-
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.