Page 1 of 1

Author mode not Rendering an image

Posted: Tue Sep 26, 2023 11:55 pm
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

Re: Author mode not Rendering an image

Posted: Wed Sep 27, 2023 7:21 am
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

Re: Author mode not Rendering an image

Posted: Thu Oct 05, 2023 6:06 pm
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.

Re: Author mode not Rendering an image

Posted: Mon Oct 09, 2023 7:35 am
by Radu
Hi Frank,
Thanks for the update!
Regards,
Radu