April, 2007

Quicktime Harsh

A few weeks ago, I spent a long long time building a feature in Drupal that allows users to drag and drop files from a "media bin" block into a TinyMCE rich-text editor. Users click on a thumbnail of an image, for example, drag and drop into the editor, and the full-sized image appears. In order for this to work, a bunch of disparate software components (TinyMCE, Drupal, jQuery, Quicktime), each with their own adorable quirks, had to talk to eachother. It was rather like assembling a working watch from the parts of 5 different watches. The bulk of my time was spent dealing with a parade of poorly-documented problems, which I describe below in the hopes that they may prove useful to someone who has to familiarize themselves with the details of these software packages on a tight deadline. I'm too lazy to tidy up the code for presentation, but there're plenty of links.