Archive for December, 2010

Integrating IMCE Drupal module with CiviCRM CKEditor

CiviCRM comes with CKEditor as a default wysiwyg editor. One of the missing feature has been ability to upload /browse existing files on the server using CKEditor. So after some investigation I figured out you can easily integrate IMCE drupal module for this purpose.

Here are the steps:
1. Install IMCE module: http://drupal.org/project/imce
2. Modify packages/ckeditor/config.js

Index: config.js
===================================================================
— config.js (revision 31357)
+++ config.js (working copy)
@@ -9,6 +9,10 @@
// config.language = ‘fr’;
//config.uiColor = ‘#AADC6E’;

+ config.filebrowserBrowseUrl = ‘/index.php?q=imce&app=ckeditor|url@txtUrl|width@txtWidth|height@txtHeight’;
+ config.filebrowserImageBrowseUrl = ‘/index.php?q=imce&app=ckeditor|url@txtUrl|width@txtWidth|height@txtHeight’;
+ config.filebrowserFlashBrowseUrl = ‘/index.php?q=imce&app=ckeditor|url@txtUrl|width@txtWidth|height@txtHeight’;
+
// disable auto spell check
config.scayt_autoStartup = false;

3. Clear you browser cache
4. That’t it, now when you click on image icon you will get option to “Browse Server”, using which you can browse existing file or upload new files on the server.

By default you can browse / upload files only to files directory.

Sorry joomla people.. this will work only for drupal.

Euro trip details

My recent europe trip itinerary:

Date Time Description Mode of Transport Place From Place To Accomodation
1 10/19/2010 17:15:00 Leave for Krakow in the evening Train Warsaw Central Krakow Glowny
2 10/20/2010 In Krakow Tango House Bed & Breakfast
Szpitalna 4 Street
Krakow
32-024
+48 12 429 3114
3 10/21/2010 Leave for Prague in the evening Train Krakow Glowny Prague HL. N.
4 10/22/2010 In Prague Golden Tulip Prague Terminus
Hybernska 42
Prague
11000
800-741-1620
5 10/23/2010 Leave for Amsterdam in the evening Train Prague HL. N. Amsterdam
6 10/24/2010 In Amsterdam Hotel Alfa Plantage

Plantage Middenlaan 26
1018 DE Amsterdam, Netherlands
7 10/25/2010 In Amsterdam -
8 10/26/2010 21:15:00 Amsterdam to London Flight Amsterdam Schiphol Airport (AMS), Amsterdam, Netherlands Terminal 5, London Heathrow Apt (LHR), London, United Kingdom
9 10/26/2010 22:30:00 London Airport YOTEL London Heathrow Airport
Arrivals Mezzanine Landside
Terminal 4