Set a "static" base href for all of your code in the htmlarea. Instead of the files pointing to "images/" set them to "{Link} etc.
(In the htmlarea.js simply replace the following:
this.imgURL = "images/";
this.popupURL = "popups/";
)
To do this with a dynamic static base href in the code, turn the pages from htmlarea into pages (I used forms with the blank navigator/$$Navigator for trick) and set the base link like this:
Set a "static" base href for all of your code in the htmlarea. Instead of the files pointing to "images/" set them to "{Link} etc.
(In the htmlarea.js simply replace the following:
this.imgURL = "images/";
this.popupURL = "popups/";
)
To do this with a dynamic static base href in the code, turn the pages from htmlarea into pages (I used forms with the blank navigator/$$Navigator for trick) and set the base link like this:
"{Link}">Link} + @GetHTTPHeader("Host") + "/" + @ReplaceSubstring(@ReplicaID;":";"") + "/images/"
As I've said, I use the form/navigator trick for this and simply create a CFD field called "hBase" set to the following:
"{Link}">Link} + @GetHTTPHeader("Host") + "/" + @ReplaceSubstring(@ReplicaID;":";"") + "/"
Now, my htmlarea.js looks like this:
this.imgURL = "<computed text>images/";
this.popupURL = "<computed text>popups/";
HTH,
-Chris