Search code examples
drupalsyntax-highlightingwysiwygckeditorimage-upload

In Drupal 6, what's the quickest way to set up a WYSIWYG editor with code syntax highlighting and image upload?


I've seen numerous posts in random places about how to set up a WYSIWYG editor for Drupal 6. I've had luck with CKEditor and FCKEditor via the WYSIWYG Drupal module. All is well there, but I hit a breaking point when I try to add on syntax highlighting and image upload functionality. Any procedure I try is very cumbersome and ends up not working (the last one I tried was using CKEditor + WYSIWYG + GeSHi Filter (with the hack) (described here).

I can't get any combination to work properly so far and there are too many variables/combinations to try. Does anybody have experience with a solution that just works without too much hassle?


Solution

  • I found a great blog post that almost answered my question here. There, Clifford Meece gives step-by-step instructions on how to set up the WYSIWYG modules with TinyMCE and Syntaxhighlighter. He also walks you through adding a few smaller modules that fix some usability issues.

    Afterwards, I installed the IMCE and IMCE WYSIWYG Bridge modules right in my sites/all/modules directory. After following the instructions in the IMCE modules readme.txt, I was able to use my WYSIWYG editor successfully with syntax highlighting and image upload features working perfectly.