Fórumok

Paste Image in liferay-ui:input-editor

thumbnail
Anindya Mallik, módosítva 8 év-val korábban

Paste Image in liferay-ui:input-editor

Junior Member Bejegyzések: 82 Csatlakozás dátuma: 2013.01.15. Legújabb bejegyzések
Hi All,

I am sending mail using liferay mail, where the mail body will be the content of liferay-ui:input-editor. For any format of text its working fine, but I cannot paste images over there.

If I paste any images, that are not visible in mail.

How to deal with images that are pasted in liferay-ui:input-editor? Please help.

Any help would be greatly appreciated.
thumbnail
Olaf Kock, módosítva 8 év-val korábban

RE: Paste Image in liferay-ui:input-editor

Liferay Legend Bejegyzések: 6403 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzések
thumbnail
Jeet Chatterjee, módosítva 8 év-val korábban

RE: Paste Image in liferay-ui:input-editor

Junior Member Bejegyzések: 33 Csatlakozás dátuma: 2014.11.22. Legújabb bejegyzések
Yah i have posted twice ,on stack and liferay ,actually wanted the answer very egarly,that's why
thumbnail
Anindya Mallik, módosítva 8 év-val korábban

RE: Paste Image in liferay-ui:input-editor

Junior Member Bejegyzések: 82 Csatlakozás dátuma: 2013.01.15. Legújabb bejegyzések
Olaf Kock:
Crossposted here


Hi Olaf,

Thanks for informing....but do you have any answer or solution? If yes, please share with us!
thumbnail
Gurumurthy Godlaveeti, módosítva 8 év-val korábban

RE: Paste Image in liferay-ui:input-editor

Regular Member Bejegyzések: 208 Csatlakozás dátuma: 2011.08.12. Legújabb bejegyzések
Hi Mallik,

Can you compare HTML editor content and mail received content quickly & see whether image mentioned placed coming with some empty space.

If image place is coming empty & its occupied specific width & height then it means the uploaded image URL looks wrong.

Check the URL which came for image. If url is not full URL then you need to make it full path url before using the content for sending email.

Thanks
Guru
thumbnail
Anindya Mallik, módosítva 8 év-val korábban

RE: Paste Image in liferay-ui:input-editor

Junior Member Bejegyzések: 82 Csatlakozás dátuma: 2013.01.15. Legújabb bejegyzések
Gurumurthy Godlaveeti:
Hi Mallik,

Can you compare HTML editor content and mail received content quickly & see whether image mentioned placed coming with some empty space.

If image place is coming empty & its occupied specific width & height then it means the uploaded image URL looks wrong.

Check the URL which came for image. If url is not full URL then you need to make it full path url before using the content for sending email.

Thanks
Guru


Hi Guru,

Many many thanks for your reply. When I am pasting an image from web, its working fine, because src of that image tag is available in web, so in the mail body it can show the image easily.

But while I am pasting from locally, I have seen it is giving an abnormal src, and obviously that url will not be available to the web.

Here I am pasting from console:
<p><img alt="Late-middle-aged bearded man in white robes looks to the left with serene composure." src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Tagore3.jpg/225px-Tagore3.jpg"></p>

<p><img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARwAAAIyCAIAAACW2OJsAAAgAElEQVR4nOy9Z1SUadY2Wv+/P+db6zuH856z3uV51zvjN9Mz7UwnzBhBUYKSlQwWoCTJSSQVuYpU5AxFRnLOUOQkWSwFJUlQgiDa0t........I="></p>


Now my question is:
How to deal with this situation where user will paste images from their local machine for sending mail and those images will be visible in mail?

Please reply.