Disable RichText editor only in customer interface

English! place to talk about development, programming and coding
Post Reply
racagalro
Znuny newbie
Posts: 16
Joined: 27 May 2013, 15:58
Znuny Version: 3.3.1

Disable RichText editor only in customer interface

Post by racagalro »

I need to disable RichText Editor but only for customer New Ticket interface. How could I do it? Maybe modifying CustomerTicketMessage template or module?
Thanks for help.
racagalro
Znuny newbie
Posts: 16
Joined: 27 May 2013, 15:58
Znuny Version: 3.3.1

Re: Disable RichText editor only in customer interface

Post by racagalro »

I forgot to write down my OTRS version. Is 3.3.1
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

Re: Disable RichText editor only in customer interface

Post by eandrex »

Create an empty file called:

Code: Select all

 CustomerRichTextEditor.dtl
and place it in

Code: Select all

 <OTRS_HOME>/Custom/Kernel/Output/HTML/Standard
dont forget to set permissions.. if it is not working, restart apache
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

Re: Disable RichText editor only in customer interface

Post by eandrex »

by the way, it will only disable the ckeditor when creating/replying a ticket in customer interface..but it WONT disable html.. that implies that a customer can still write plain html and OTRS will parse it. If you want to disable html as well, you will have to edit CustomerTicketMessage.pm by setting

Code: Select all

$Self->{LayoutObject}->{BrowserRichText} = 0;
in new subrutine
racagalro
Znuny newbie
Posts: 16
Joined: 27 May 2013, 15:58
Znuny Version: 3.3.1

Re: Disable RichText editor only in customer interface

Post by racagalro »

Thanks for your answer. It works fine.
Post Reply