laravel-mail-editor icon indicating copy to clipboard operation
laravel-mail-editor copied to clipboard

How to insert Picture ?

Open dgillier opened this issue 4 years ago • 3 comments

I know that the doc is online, but can't find a way to insert an image into a template with {{asset('img/brand/bms_logo_black.png')}}...

Preview are not really working (pict is correctly displayed depending on where...).

Screenshot 2020-06-09 at 15 44 56 Screenshot 2020-06-09 at 15 45 08 Screenshot 2020-06-09 at 15 45 18

What is the right way to do it if any ? Thanks, Denis

dgillier avatar Jun 09 '20 13:06 dgillier

Hi @dgillier Did you get any resolution to this problem???

Thanks

Elshaden avatar Sep 01 '20 19:09 Elshaden

Hey @dgillier, if you are trying to output the image in your HTML code, maybe Blade will help <img src="@asset('img/brand/bms_logo_black.png')"/>

Alina-chan avatar Oct 01 '20 08:10 Alina-chan

Hey, thanks for reporting and sorry for the late reply, This issue happens because for the no markdown templates we are basically using the built-in WYSIWYG plugin to preview/render blade templates and not actually compiling it as we do for a markdown template, so you need to use the full image URL (without using the asset or mix function) in order to preview it, anyway i have added this to our future improvements.

Thanks

Qoraiche avatar Jul 16 '21 22:07 Qoraiche