CKEditor 3.4.1

Hi all,
I’ve just integrated CKEditor 3.4.1 with my RT 3.8.7,

here is the patch if someone wants to do the same :

download the last version of the editor
http://download.cksource.com/CKEditor/CKEditor/CKEditor%203.4.1/ckeditor_3.4.1.tar.gz
and unpack it into %localRTpath%/html/NoAuth/RichText

then modify the two files html/NoAuth/RichText/dhandler and
/html/Elements/HeaderJavascript like this :

diff %localRTpath%/html/NoAuth/RichText/dhandler
%lRTpath%/html/NoAuth/RichText/dhandler
51c51
< my $file = dirname($m->current_comp->source_file) . ‘/ckeditor/’ . $arg;

my $file = dirname($m->current_comp->source_file) . ‘/FCKeditor/’ . $arg;

$ diff %localRTpath%/html/Elements/HeaderJavascript
%RTpath%/html/Elements/HeaderJavascript
58c58
<

73,74c73
< if (
< ! CKEDITOR.env.isCompatible ||

    if (!FCKeditor_IsCompatibleBrowser() ||

117,119c114,116
<
CKEDITOR.replace(textArea.name,{width:‘100%’,height:‘<%
RT->Config->Get(‘MessageBoxRichTextHeight’) %>’});
< CKEDITOR.basePath =
“<%RT->Config->Get(‘WebPath’)%>/NoAuth/RichText/”;
<

            var oFCKeditor = new FCKeditor( textArea.name, '100%', <% RT->Config->Get('MessageBoxRichTextHeight') %> );
            oFCKeditor.BasePath = "<%RT->Config->Get('WebPath')%>/NoAuth/RichText/";
            oFCKeditor.ReplaceTextarea();

Rémi

Thanks! Based on this, I’ve just gone and upgraded RT 3.9 (will be 4.0)
to CKEditor.

-JesseOn Fri 15.Oct’10 at 16:25:10 +0200, Rémi wrote:

Hi all,
I’ve just integrated CKEditor 3.4.1 with my RT 3.8.7,

here is the patch if someone wants to do the same :

download the last version of the editor
http://download.cksource.com/CKEditor/CKEditor/CKEditor%203.4.1/ckeditor_3.4.1.tar.gz
and unpack it into %localRTpath%/html/NoAuth/RichText

then modify the two files html/NoAuth/RichText/dhandler and
/html/Elements/HeaderJavascript like this :

diff %localRTpath%/html/NoAuth/RichText/dhandler
%lRTpath%/html/NoAuth/RichText/dhandler
51c51
< my $file = dirname($m->current_comp->source_file) . ‘/ckeditor/’ . $arg;

my $file = dirname($m->current_comp->source_file) . ‘/FCKeditor/’ . $arg;

$ diff %localRTpath%/html/Elements/HeaderJavascript
%RTpath%/html/Elements/HeaderJavascript
58c58
<

73,74c73
< if (
< ! CKEDITOR.env.isCompatible ||

    if (!FCKeditor_IsCompatibleBrowser() ||

117,119c114,116
<
CKEDITOR.replace(textArea.name,{width:‘100%’,height:‘<%
RT->Config->Get(‘MessageBoxRichTextHeight’) %>’});
< CKEDITOR.basePath =
“<%RT->Config->Get(‘WebPath’)%>/NoAuth/RichText/”;
<

            var oFCKeditor = new FCKeditor( textArea.name, '100%', <% RT->Config->Get('MessageBoxRichTextHeight') %> );
            oFCKeditor.BasePath = "<%RT->Config->Get('WebPath')%>/NoAuth/RichText/";
            oFCKeditor.ReplaceTextarea();

Rémi


List info: The rt-devel Archives