Exchange of the CKEditor and customize

Moderator: crythias

Locked
mahoe
Znuny newbie
Posts: 5
Joined: 02 Mar 2011, 17:34
Znuny Version: 3.0.7

Exchange of the CKEditor and customize

Post by mahoe »

Hi

I have two problems with the CKEditor.

First I wanted to customize the toolbar of the CKEditor. In my opinion I followed the steps of the CKEditor manual http://docs.cksource.com/CKEditor_3.x/D ... de/Toolbar
My config.js file looks as follows:

Code: Select all

CKEDITOR.editorConfig = function( config )
{
    config.toolbar = 'MyToolbar';

    config.toolbar_MyToolbar =
    [
        ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
        '/',
        ['Styles','Format'],
    ];

    CKEDITOR.replace( 'editor1',
    {
        toolbar : 'MyToolbar'
    });
};
Despite just a few toolbar buttons in the config file OTRS is still showing the whole standard toolbar.
Did I forget anything? Did I make a configuration error?


Second I wanted to exchange the CKEditor 3.4.2 with the newer version 3.5.2.
Therfore I downloaded the new version, copied it into the directory <OTRS_HOME>/var/httpd/htdocs/js/thirdparty/ and changed the rights for the otrs user.
Furthermore, I changed the sysconfig entry Frontend::RichTextPath of Framework -> Core::Web to "<OTRS_CONFIG_Frontend::WebPath>js/thirdparty/ckeditor-3.5.2/"
Now the editor window disappeared (please find a screenshot attached).
Does anybody have an idea what I have done wrong?

Thanks in advance!
I appreciate any help.

Greetings
Markus
You do not have the required permissions to view the files attached to this post.
OTRS 2.3.4 and 3.0.7 on Linux with MySQL database connected to an Active Directory for Agents
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Exchange of the CKEditor and customize

Post by crythias »

otrs/var/js/Core.UI.RichTextEditor.js ignores local config.js

Code: Select all

           customConfig: '', // avoid loading external config files
I see the 3.5.2 issue. There's a js error about init. I'd suggest a bug report on it.
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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Exchange of the CKEditor and customize

Post by crythias »

here's what you need to do:

Code: Select all

cd /opt/otrs
mkdir var/httpd/htdocs/js/thirdparty/ckeditor-3.5.2/skins/default
cp -r var/httpd/htdocs/js/thirdparty/ckeditor-3.4.2/skins/default/* var/httpd/htdocs/js/thirdparty/ckeditor-3.5.2/skins/default/
mkdir var/httpd/htdocs/js/thirdparty/ckeditor-3.5.2/plugins/aspell
cp -r var/httpd/htdocs/js/thirdparty/ckeditor-3.4.2/plugins/aspell/* var/httpd/htdocs/js/thirdparty/ckeditor-3.5.2/plugins/aspell/
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
mahoe
Znuny newbie
Posts: 5
Joined: 02 Mar 2011, 17:34
Znuny Version: 3.0.7

Re: Exchange of the CKEditor and customize

Post by mahoe »

Hi

Many thanks for your fast assistance.
With your instructions of the last post the exchange of the CKEditor worked perfectly.

Regarding the issue of ignoring the local config.js I will create a bug report.

Greetings
Markus
OTRS 2.3.4 and 3.0.7 on Linux with MySQL database connected to an Active Directory for Agents
Locked