
mirebob at gmail
Oct 15, 2010, 7:25 AM
Views: 820
Permalink
|
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 < <script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/RichText/ckeditor.js"></script> --- > <script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/RichText/fckeditor.js"></script> 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: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
|