Sometimes Drupal is the best thing since sliced bread, sometimes it is a pain in the keister. The most painful moments are when you are trying to do something that you are sure will be simple, but ends up taking hours of trial and error. My latest example was setting up a site with a Wysiwyg front-end with simple image uploading and manipulation. I have done this lots of times over the years, and wasn't expecting much trouble, but man.
My initial setup used the FCKEditor and IMCE modules, which seemed to be working fine, until we ran into an error with dragging the images. Updating the modules and underlaying library didn't fix it (despite the issue being marked as fixed in the issue queue), so I thought this would be the perfect time to check out the WYSIWYG API module. Unfortunately, this is a module with a lot of moving parts, many of them progressing at different speeds. And drupal.org's policy of not hosting 3rd party libraries makes finding a complete set of modules and libraries that work together somewhat nightmarish.
Long story short, here is what I got working:
- Drupal 6
- WYSIWYG API 6.x-2.0
- IMCE 6.x-1.3
- IMCE Wysiwyg bridge 6.x-1.0
- FCKEditor 2.6.5
- Installed to sites/libraries/fckeditor
- Wysiwyg can't handle CKEditor 3.0 without some patching.
- Tinymce replaces <img> tags with [img] tokens. PITA.
Once those are all installed on the server:
- Enable the three modules
- Either create a new wysiwig Input Format that won't be available to untrusted users. If you add an HTML filter to that Format, be sure it allows <img> and <p>.
- Wysiwyg module setting
- Set your perfered Input Format to FCKeditor 2.6.5 (Note, once you set this, you will need to delete the profile before you can set it to something else. UX fail).
- Select your buttons, being sure to check at least image and IMCE.
- Remember to select a profile for the whatever role your content creator will have.
- I like to remove the Thumbnail and Resize options to keep it simple.