Codesnippet looses style in email ticket

English! place to talk about development, programming and coding
Post Reply
Lomic
Znuny newbie
Posts: 1
Joined: 28 Apr 2023, 22:12
Znuny Version: 6.0
Real Name: Yevhen

Codesnippet looses style in email ticket

Post by Lomic »

Hello. I have some issue with sending Code-block on email.
Pre:
OTRS 6.0 and CKeditor 4.17.0
I added codesnippet to CKeditor and configured the toolbar to show Code-button.
When I add code to CKeditor - it shows with background and code-stylish, but after I send email, it comes to client as just plain text. Without style effects.

I checked 'original' email and see that email has both content types plaintext and html, and html has all tags of codesnippet style... But I can't understend why OTRS reject this styles and send mail as simple text.

Other formats like "H1", "Text color", "underline" works fine. Pasted images (scrinshots pasted as "ctrl+v") in body of email also delivered without any issue.

Could you help me how to understend where I should change some code to allow OTRS send codesnippet styles without removing them.

Thank you for your help.
Post Reply