Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Advanced e-mail templates (HTML lay-out)

More
4 years 11 months ago #205691 by rencosch
Hi there,

a LimeSurvey expert designed an HTML e-mail template for me in order to send good-looking (HTML) e-mail invites, reminders etc. Since the editor has a toggle to source mode, I assumed you can put in whatever (correct) code you want.That indeed seems to be the case but the editor inserts countless <br /> tags into the code which renders it useless. Although the 2nd screenshot only shows a portion (mainly the <head>) of the code, I can confirm that the <br /> tag is added all through the code. In the <body> section of the code, the tag gets added within almost 50% of the code rules ('rows').

Was I mistaken about the possibilities of HTML formatted e-mail templates or is the editor not working properly? I've tried various browser to no avail.

Regards,
Ren
More
4 years 11 months ago #205693 by tpartner
LimeSurvey version?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
4 years 11 months ago #205701 by rencosch
I apologise. It's 4.3.14+200826.
The topic has been locked.
More
4 years 11 months ago #205702 by rencosch
To clarify: the editor adds the <br /> tags upon saving the template.
The topic has been locked.
More
4 years 11 months ago #205708 by DenisChenu
I can not really confirm (on last GIT version)

But maybe you can set your preference to Source code editor.

I try to add broken HTML with sourcecode : it work.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
4 years 11 months ago #205716 by rencosch
Thanks for checking. I've set the HTML-editor mode to 'Sourcecode editor'. It has no effect: when I paste the correct HTML code into the sourcecode editor all goes well but after I save it, the editor adds the numerous <br /> tags.

Seems like a bug to me, but I'd expect more users to face this issue. Or perhaps it is not that common to use more advanced HTML markup for LimeSurvey e-mails?
The topic has been locked.
More
4 years 11 months ago #205739 by DenisChenu

rencosch wrote: Seems like a bug to me, but I'd expect more users to face this issue.

I think too : but i test on last version : i can not reproduce.

Maybe browser related ?
Or : update to the last version.

Maybe something other : XSS related ? www.limesurvey.org/manual/Global_settings#Security

But if you are not allowed to add script in survey, seems OK to be not allowed to add head in email.

Try login as super admin.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
4 years 11 months ago #205771 by rencosch
Hi Dennis, thanks for your suggestions. I've tried them all but unfortunately the problem remains.

I've tried various browsers
My account is already 'admin'
Changing the XSS options did not help (XSS filtering is always disabled for admin)
Updating to 4.3.17+200921 did not help.

So, a bug then? But then you should have been able to reproduce, right?
The topic has been locked.
More
4 years 11 months ago - 4 years 11 months ago #205783 by DenisChenu

So, a bug then? But then you should have been able to reproduce, right?

I think too, maybe some other difference …

BUT : i check again, and can reproduce …

Please : report, give the link here. I add a screencast.


Else : if possible, for production : setup a 3.X LTS version …


EDIT : in fact : add a <br /> each time you save it … not related to HTML header

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 4 years 11 months ago by DenisChenu.
The topic has been locked.
More
4 years 11 months ago #205792 by rencosch
Thanks, I've opened up a bug report: bugs.limesurvey.org/view.php?id=16701
The following user(s) said Thank You: DenisChenu
The topic has been locked.
More
4 years 11 months ago #205802 by DenisChenu
Thanks to you !

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
4 years 11 months ago #205811 by rencosch
And to you for already contributing to this bug report!
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose