Default icon oxy_url

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
Johann
Posts: 198
Joined: Wed Jun 17, 2015 12:46 pm

Default icon oxy_url

Post 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
Johann
Posts: 198
Joined: Wed Jun 17, 2015 12:46 pm

Re: Default icon oxy_url

Post 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
Bogdan Dumitru
Site Admin
Posts: 142
Joined: Tue Mar 20, 2018 5:28 pm

Re: Default icon oxy_url

Post 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
Bogdan Dumitru
http://www.oxygenxml.com
Johann
Posts: 198
Joined: Wed Jun 17, 2015 12:46 pm

Re: Default icon oxy_url

Post by Johann »

Hello Bogdan,

Thank you for the explanation.

I managed to achieve the expected result!


Regards,

Johann
Post Reply