Adding a br between each image Solved

User's avatar
Mathias L.
16:36 Mar 11, 2015
First of all, thanks for the plugins,

I can configure it easily, but when I'm adding many images, can I put a <br /> after each image insert in ckEditor ?

thanks ;)
Support team avatar
JS+
10:14 Mar 12, 2015
Hello,

Yes, you can. Please see documentation page: http://doksoft.com/soft/ckeditor-easy-image-upload/customize.html
and modify template parameter for your needs. Like this:
config.doksoft_easy_image_template = '<img src="{IMAGE}"/><br/>';
User's avatar
Mathias L.
14:54 Mar 12, 2015
Hello DOKSoft ,

Thanks you for your reply, but i have already try to add a <br/> on the template parameter, but when I hit "ok" it only add the images I choose but no BR in ckeditor.

Is it the config of my ckeditor that can remove thoses br ?!

By the way, here is another question, i would like to add the name of the image in an alt="", is there a way to have only the image name, the {IMAGE} parameter give the absolute url of the image :)

Thanks you ! ;)
User's avatar
Mathias L.
14:58 Mar 12, 2015
Oups, sorry for the second question, the answer is {FILENAME} my appologize :)
User's avatar
Mathias L.
15:02 Mar 12, 2015
I have put a div between the IMG and it works, but the <br /> still disappear :)

Here is my config template :

config.doksoft_easy_image_template = '<div style="text-align: center;"><img alt="{FILENAME}" src="{IMAGE}"/> </div>';
Support team avatar
JS+
18:53 Mar 16, 2015
Hello,
Maybe you having a problem with CKEditor's feature to remove unwanted content. Try adding this to your 'config.js' file:
config.allowedContent = true;
User's avatar
Mathias L.
10:32 Mar 17, 2015
Hello,

It stills didn't add the <br />, did it work with your ckEditor ? :)
Support team avatar
JS+
10:58 Apr 02, 2015
Hello, sorry for such delay. To understand who is removing tags you can try to add "br" tag in Source mode manually, switch to WYSIWYG and back and if you do not see your tag anymore so this is CKEditor's fault.
Actually maybe you will think about some workaround? For example somehow wrapping with "div"/"p" with margins? It depends of what do you need to do.