Page 1 of 1

Default icon oxy_url

Posted: Tue Dec 06, 2022 4:53 pm
by Johann
Hello,

Is it possible to change the default image / icon displayed when the result of an oxy_url in the CSS is not resolved?

Thank you,

Johann

Re: Default icon oxy_url

Posted: Tue Dec 06, 2022 7:57 pm
by Johann
In fact, I see that I can have my own app/images/BrokenImage24.png but this image is always displayed with 24 x 24 size.

Is it possible to override this size?

Thank you,

Johann

Re: Default icon oxy_url

Posted: Wed Dec 07, 2022 12:55 pm
by Bogdan Dumitru
Hello Johann,

You can do this but only with a hack, add the below CSS as an application style (like this sample plugin does [1]) and then override the "BrokenImage24.png" and "BrokenImage24@2x.png" images from "oxygen-xml-web-author\tomcat\webapps\oxygen-xml-web-author\app\images\" directory.

Code: Select all

img[src="images/BrokenImage24.png"],
img[src="images/BrokenImage24@2x.png"] {
    height: 100px!important;
    width: 100px!important;
}
[1] https://github.com/oxygenxml/web-author ... i-with-css

Re: Default icon oxy_url

Posted: Thu Dec 08, 2022 5:24 pm
by Johann
Hello Bogdan,

Thank you for the explanation.

I managed to achieve the expected result!


Regards,

Johann