_Seb_ – I can confirm this problem.
But you could set the viewDisplaySetting to a different value and then again to the old value:
myRectangle.htmlItems.htmlContent = "<b>New HTML</b>"; app.documents.windows.everyItem().viewDisplaySetting = ViewDisplaySettings.OPTIMIZED; app.documents.windows.everyItem().viewDisplaySetting = ViewDisplaySettings.HIGH_QUALITY;
Or, maybe a better idea:
//Set the visibility of the HtmlItem: myRectangle.htmlItems.visible = false; myRectangle.htmlItems.visible = true;
I'm not seeing this on my end...
@_Seb_ – does the display refresh and showing the new HTML-preview, if you go to another page and come back?
Did you solve this one? I seem to have the same problem. It works if I create the HTML item by hand.
if ( r.htmlItems.length == 0 )
r.htmlItems.add ( );
r.htmlItems.htmlContent = theHTML;
r.htmlItems.visible = false;
r.htmlItems.visible = true;
It works if I create the HTML item by hand.
just tried again with CC 2014.2 where we can get a real good preview in the EPUB Interactivity Preview Panel.
The "preview" you are after, the one in the HTML frame, is no preview at all, I think, just a strange representation of rendered HTML.
Or not. I experimented a bit without success and finally thought, let's do it the UI way and came up with a strange example.
Somehow the contents of an already removed frame I did with ExtendScript or by UI (I can't remember exactly) travelled over partly to a new HTML frame I did in the UI.
I did not change its contents. It's just the default one as you can see in the EPUB Interactivity Preview Panel.
I haven’t fully test this.
r.contentType = ContentType.GRAPHIC_TYPE;