Author mode not Rendering an image

Oxygen general issues.
FrankDLT
Posts: 18
Joined: Tue Jul 12, 2022 10:17 pm

Author mode not Rendering an image

Post by FrankDLT »

Hello and Good day.

I'm working with a custom framework for Oxygen 24 and we are experiencing an odd problem when using the insert image operation.
When inserting an image into a topic that's part of a ditamap, the image will be inserted and the map, that contains an inner ditamap with the reference to all files used in the book, will be updated, but even after our custom code has the instruction refreshReferences() with the reference to that rootmap, the contents are not actually refreshed, we need to either manually select the map from the left menu and hit F5 or close and reopen the rootmap for the topic to actually render the image.
Is there a function that could force a reload of the file or a way to refresh all the maps found on the left menu?

Thanks, and regards
Frank
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Author mode not Rendering an image

Post by Radu »

Hi Frank,
I'm not sure if I understand the entire setup.
So the topic is opened by itself in the main editor area? And you insert an image in it? Do you insert the image using our action or your custom action? After you insert the image in the topic, is it shown there?
Then the map, is it opened in the DITA Maps Manager view? If so, the DITA Maps Manager view does not present the contents of topics anyway....
Or is it opened in the main editor area using the special "Open Map in editor with resolved topics" action?
Can you also copy paste a bit of the code which calls "refreshReferences()"? Also maybe if you have a custom action which inserts the image, copy paste a bit of that code also.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
FrankDLT
Posts: 18
Joined: Tue Jul 12, 2022 10:17 pm

Re: Author mode not Rendering an image

Post by FrankDLT »

Hi Radu

Sorry for the delay, as it turns out we were actually having problems due to the type of object we were using to set the ditamap to writable. The insert was custom and it needed a different process, so even if the map was opened it needed to be edited, turns out we could just change a couple of things in the RefreshReferences() to make the rootmap not read only and that solved the issue.
Thanks for the response and have a good day.

Frank.
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Author mode not Rendering an image

Post by Radu »

Hi Frank,
Thanks for the update!
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply