When adding new custom content in Pages the wysiwyg is added to a modal window but (in this case) the ckeditor.js file is not loaded into the drupal_add_js array. This means that when ocupload is added to the wysiwyg, 'Drupal.settings.ocupload is not defined' and ocupload breaks.

In this scenario the checking of the ckeditor.js file (or, I'm guessing other wysiswyg files) within the hook_preprocess_html fails. It would be better to add a separate hook_form_alter - specifically for the ctools_custom_content_type_edit_form - and add the required variables to the settings object as well as the swfupload files there.

Patch can be supplied if required.

Comments

ivnish’s picture

Is this actually on the last version?