Refresh image in Oxygen Author Component
Posted: Tue May 26, 2015 11:04 am
We are using Oxygen web Component in our application as a main topic editor.
I've bumped into the problem when in topic was included a link to image.
We used our StylesFilter implementation - DITAStylesFilter. In DITAStylesFilter I used this code to download images:
When I removed image from cmis, the oxygen shows: Unsupported image type for http:/../image.jpg. When I've recovered an image and done a reloadContent, the oxygen continued to show this warning. I tried to use clearImageCache and WSAuthorEditorPage.refresh() before reloadConten, but it still doesn't work.
A request in DITAStylesFilter was formed correctly before reloadContent, but it does not come to our servlet.
How can I fix this problem?
Best regards,
Aleh.
I've bumped into the problem when in topic was included a link to image.
We used our StylesFilter implementation - DITAStylesFilter. In DITAStylesFilter I used this code to download images:
Code: Select all
StringBuilder request = new StringBuilder();
request.append("repository_root?sourceDocPath=");
request.append(sourceDocPath);
request.append("&destDocPath=");
request.append(decodeLink(attrValue.getValue()));
String url = baseUrl + "/";
styles.setProperty(Styles.KEY_MIXED_CONTENT, new StaticContent[] { new URIContent(url, request.toString()) });
A request in DITAStylesFilter was formed correctly before reloadContent, but it does not come to our servlet.
How can I fix this problem?
Best regards,
Aleh.