Hi,
I'm trying to change image path because I'll use FCKeditor for the mailings.
I'm using FCKeditorTag and I'm setting the baseHref like this:
<FCK:editor
basePath="/UserFiles/"
baseHref="http://localhost:8080"
id="EditorId"
width="100%"
height="400" >
</FCK:editor>
I know there are a lot of threads talking about it, but I didn't find jsp's solution.
Thanks!
Tue, 03/21/2006 - 02:02
#1
RE: Absolute image path in JSP
This is not the best solution but it works and sources are not changed.
I write small JavaScript function and I call it on form submit.
function SubmitReplacedImages(){
var oFFCKedit = FCKeditorAPI.GetInstance(instance_name);
var B = oFFCKedit.EditorDocument.getElementsByTagName("IMG");
for (i=0; i<B.length; i++) {
B[i].setAttribute("_fcksavedurl", B[i].src);
}
}
Good luck,
Andrey.