Hi,
I am having a hard time to workaround this wrong picture visualization. The picture is pasted inside HTML Area in content type. When i paste it in the angular InnerHTML (witch till now works with HTML Area perfectly) the img is scaled wrong. I Already tried to change the css to set all img for some size, but it did not work. I also tried to set custom width (content in %), which also did not seem to change it in any ways.
Did you get this figured out? In order to try to solve the issue we need to see the generated imageUrl and also what kind of CSS you apply to it on the client. Ideally, we need the image file as well. Basically, everything to be able to reproduce the issue on our side.
Unfortunately not. Ok, gonna try to add anything useful.
Image is inserted in html area, that with our query (in description above), creates this answer under data and content : <figure class=\"captioned editor-align-center editor-style-original\" style=\"margin: auto; width: 60%;\"><img alt=\"mamut_naty_internety.jpg\" src=\"http://gkr-show-server2.qa.gk-software.com:8080/site/default/draft/intranet/_/attachment/inline/1283659e-1d15-41bc-85d6-01f1305f248c:02fb787d62d9b0e99866df2572e530254f484206/mamut_naty_internety.jpg\" />\n<figcaption>Mamut ΔasovΓ‘ osa</figcaption>\n</figure>\n\n<h3 style=\"text-align:justify\">
this is just a part of that answer from enonic but it seems to have all the crucial info for the img.
CSS:
Sorry for the delay. Yes, we have found the issue and registered it here. Will be fixed in the next release of Content Studio.
Until then you can temporarily fix it by applying βwidth: 100%β to the <img> element, either via your stylesheets (best option) or inline when you set innerHTML.