feat(messages): use trix editor in messages

This commit is contained in:
Philipp Rothmann 2023-08-04 10:55:31 +02:00 committed by Philipp Rothmann
parent c4a53caf52
commit ef6d6aa368
14 changed files with 83 additions and 5 deletions

View file

@ -5,7 +5,7 @@ module MessagesHelper
body = ''
else
subject = message.subject
body = truncate(message.body, length: length - subject.length)
body = truncate(message.body.to_plain_text, length: length - subject.length)
end
"<b>#{link_to(h(subject), message)}</b> <span style='color:grey'>#{h(body)}</span>".html_safe
end