Today I investigated this issue, also known as bug 3460, a little further. It is caused by the fact that the rich text editor component must be invoked with the URL to store the images. The problem is that depending on where the article is shown, on the Customer frontend or on the Agent's frontend, the URL should be different. Kind of complicated to resolve, I think.

As a workaround I created a little JavaScript which should be added to Kernel/Output/HTML/Standard/FAQ.dtl which rewrites the IMG SRC attributes to match the proper location. It is dirty but works for now. Insert the following at around line 72:

<script type="text/javascript">
# small hack by Michiel Beijen - michiel@beefreeit.nl
# this script rewrites URLs for images that point to index.pl and points them to customer.pl
# see bug # 3460 [http://bugs.otrs.org/show_bug.cgi?id=3460]

var imageobjects=document.getElementsByTagName("img");
var arLen=imageobjects.length;
for ( var i=0, len=arLen; i<len; ++i ){
if (imageobjects[i].src.match("index\.pl?"))
{
 imageobjects[i].src = imageobjects[i].src.replace(/index\.pl\?Action\=AgentFAQ/,"customer.pl?Action=CustomerFAQ");
}
}
</script>

This way there is no need to modify user permissions. Hope this can be of use to someone.

Kind regards,
--
Michiel Beijen
Software Consultant
+31 6 - 457 42 418
Bee Free IT + http://beefreeit.nl


On Tue, Jan 6, 2009 at 15:51, Markus Nagel <edv@tekomedia.de> wrote:
>
> Hello list,
> I am very pleased to see that the wysiwyg-editor in FAQ-Module 1.5.4
> also deals with pictures and even picture uploads.
> This works very well in AgentFrontend.
> But when I change to customer or public frontend, the pictures are not
> visible and there neither is a placeholder for them. They are simply not
> there.
> Returning to AgentFrontend, thea are still there.
> Is it a matter of configuration or user rights?
>
> I'm using otrs 2.3.3 with ITSM 1.2.2
>
> Thanks in advance
>
> Markus Nagel
>
> _______________________________________________
> OTRS mailing list: otrs - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/otrs
> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs