How to access to the Image Preview panel

Post here questions and problems related to oXygen frameworks/document types.
Lordy
Posts: 8
Joined: Thu Aug 01, 2024 5:22 pm

How to access to the Image Preview panel

Post by Lordy »

Hi guys.

Recently I opened an image in Oxygen, and it was displayed in this panel. That's okay, but I was wondering if there is a way to access to that panel with the APIs and then change the title in the bottom.
example.png
I'm working with Oxygen Desktop 24.1

Thanks in advance.
You do not have the required permissions to view the files attached to this post.
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to access to the Image Preview panel

Post by Radu »

Hi,

If you call this API "ro.sync.exml.workspace.api.Workspace.open(URL)" with the URL of an image, Oxygen should attempt to open the image in the Preview view.
There are no specific APIs to customize the Preview view. Of course, you could attempt to make your CMS Preview view, contribute a custom side view from a plugin but this might be some more work.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Lordy
Posts: 8
Joined: Thu Aug 01, 2024 5:22 pm

Re: How to access to the Image Preview panel

Post by Lordy »

Hi Radu.
Yes, that solution sounds a little bit laborious.
Thanks for your response.
Post Reply