Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tickets without CSS #1719

Closed
janselato opened this issue Feb 8, 2022 · 11 comments
Closed

Tickets without CSS #1719

janselato opened this issue Feb 8, 2022 · 11 comments
Labels
help wanted Extra attention is needed

Comments

@janselato
Copy link

HI, i have problem with mails.
Mails created from freescout:
image

This message is difficult to read. Can you create new setting to fetch mails with original css?
Original message:
image

@ilyakonovalenko
Copy link
Contributor

ilyakonovalenko commented Feb 8, 2022

I think it is actually better to display text version by default. And HTML version as an option. HTML version is not safe, at least. It is also hard to read without original CSS styles which are removed. So if FreeScout developer decides to change it, my suggestion would be text version by default.

@janselato
Copy link
Author

I know it's not safe, but this solution don't better.
I think, better add option in settings system to change default viewing tickets.

@ilyakonovalenko
Copy link
Contributor

I know it's not safe, but this solution don't better.

Current HTML view is not looking good as well :-) Not sure if text view can be implemented via module hooks and filters, anyway it would be nice, simple and useful to have text view in core.

@freescout-helpdesk
Copy link
Owner

freescout-helpdesk commented Feb 10, 2022

We'll leave this as help wanted. If someone can come up with some secure and reliable solution which would preserve original ticket's CSS please share and implement.

@freescout-helpdesk freescout-helpdesk added the help wanted Extra attention is needed label Feb 10, 2022
@janselato
Copy link
Author

@janselato
Copy link
Author

@ipruthi
Copy link

ipruthi commented Apr 7, 2022

@freescout-helpdesk Is it solution? https://content-security-policy.com/style-src/

@janselato, I think the CSS feature asked on this thread has to do with inline CSS not being rendered by Freescout, not remote CSS files.

But thanks for style-src though, I didn't even know it existed!

@zigojacko
Copy link

I agree that I would prefer to be able to set default Text/HTML emails in the settings if anyone would like to take this on as a module or something...? 😂

@MarcoWel
Copy link

Copy/pasting + inserting pre-defined replies into the message textbox without formatting as default would already help a lot with mixed up styling in replies.

@freescout-helpdesk
Copy link
Owner

It looks like there is no a solution for this.

@verygoodplugins
Copy link

I stumbled on this issue earlier today and solved it (for us). You can edit the allowed HTML and CSS in /config/purifier.php. After editing, run php artisan config:clear to clear the cache.

According to the guidelines this will be safe between updates: https://github.com/freescout-helpdesk/freescout/wiki/Development-Guide#development-guidelines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants