cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Type: RichText. No image from local drive displayed

udoderk
Champ in-the-making
Champ in-the-making
Hi all,
i have developed the custom renderer, that has a richtextarea. If i try to paste the image from htm site, that refers on the local drive  like
src="file:///C:/1/HTML-IMG//image001.jpg‍
,
no images will be displayed.
If i use the reference from "Internet" like
src="http://activiti.org/userguide/images/bpmn.why.exclusive.jobs.png‍
i see the images.

Is it  prevent Cross-Site Scripting do it? If, yes  is it possilbe to dissable that temporary??

Or exists other reason, that not allowes to display such image ?
4 REPLIES 4

burn83
Champ in-the-making
Champ in-the-making
hello udoderk,

I want to add some image (png,jpeg) in my activiti-form..but i not understand how i must doing..

I've reading that you have add a richtextarea..how you doing?!

the Solutions you have founded it's similar to my issue?!

burn83
Champ in-the-making
Champ in-the-making
i develop in Windows OS.
if i can help you..have you try to convert this slash "/" in this "\" .. or double slash!? "\\"..

Can be a path problem maybe?!

keep me update..

udoderk
Champ in-the-making
Champ in-the-making
hello udoderk,

I want to add some image (png,jpeg) in my activiti-form..but i not understand how i must doing..

I've reading that you have add a richtextarea..how you doing?!

the Solutions you have founded it's similar to my issue?!
i have developed the custom form type: created some java classes:
that inherit from abstract form type
that realize the rendering and validation
Then registered in activiti xml files.

One from custom form types is a richtextarea.

If i paste the images from other internet sites, that are displayed….

udoderk
Champ in-the-making
Champ in-the-making
i develop in Windows OS.
if i can help you..have you try to convert this slash "/" in this "\" .. or double slash!? "\\"..

Can be a path problem maybe?!

keep me update..
Thanks i test it solution. (But other web aplication, realized in Vaadin too, displays the "local" images , that use the absolute path…
It' may be security restrictions in "activiti" tomcat…..