how to add rtf-formatted articlebody

English! place to talk about development, programming and coding
Post Reply
chohman
Znuny newbie
Posts: 17
Joined: 03 May 2013, 15:40
Znuny Version: 4.0.7
Company: GetCon GmbH

how to add rtf-formatted articlebody

Post by chohman »

hi,
im creating an article via $Self->{TicketObject}->ArticleCreate and add a link to the body.

using the otrs build in rtfeditor the resulting rtfsource reads:
<a href="http://tester" target="_self">tester</a>
now i want to add such a formatted string as article body, but it allways gets escaped and shows the source as result.

i tried different contenttype settings, which either showed the escaped variant or - for type "application/rtf" produced the result "- no text message => see attachment -", with a well formatted attachment.

any idea how i can get otrs to interpret my string as rtf sourcecode?

kr, ch
otrs 4.0.7, ITSM, Mysql. Ubuntu
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: how to add rtf-formatted articlebody

Post by crythias »

Try:

Code: Select all

MimeType => 'text/html',
Charset => 'utf-8',
OR

Code: Select all

ContentType      => 'text/html; charset=utf-8', 
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
chohman
Znuny newbie
Posts: 17
Joined: 03 May 2013, 15:40
Znuny Version: 4.0.7
Company: GetCon GmbH

Re: how to add rtf-formatted articlebody

Post by chohman »

thanx again
otrs 4.0.7, ITSM, Mysql. Ubuntu
Post Reply