cancel
Showing results for 
Search instead for 
Did you mean: 

Including image in HTML content

wciesiel
Champ in-the-making
Champ in-the-making
Hi all,

I am trying to include an image (being uploaded into alfresco) into a HTML document created within Alfresco.

When I open inline editor and insert an image with absolute URL (http://myserver/<fullpath/myimage.jpg) then alfresco is escaping this url making it relative (starting with ../../ ) which is not valid from within document 😕

How can I insert an image in such a way to see it's preview both in inline editor and document (at URL like http://localhost:8080/alfresco/d/d/workspace/SpacesStore/4b0e3303-9974-11dc-98b9-df37cf3341c1/articl...)?

It would be enough to turn off that absolute-to-relative path conversion being done for me

I hope you can help me, any assitance would be greatly appreciated.

Regards,
Wojtek
2 REPLIES 2

rivarola
Champ on-the-rise
Champ on-the-rise
Hello,

There is a project in the Forge allowing images as links : http://forge.alfresco.com/projects/ui-widgets/

Knowings has also developped a module allowing image upload from Tiny.

Without it you can reference absolute URLs in the HTML code outside Alfresco (third party editor) and then import the HTML file without going through Tiny…  Smiley Sad

vijay_alfresco
Champ in-the-making
Champ in-the-making
If you are using freemarker template as renedition then you may use
${imageurl?substring(1)}
so that that the first / will be ignored from the image url