Allow media (module) tags in wysiwyg with ckeditor 3
/**
* Implements hook_wysiwyg_editor_settings_alter().
*/
function hook_wysiwyg_editor_settings_alter(&$settings, $context) {
// Allow media (module) tags.
if ($context['profile']->editor == 'ckeditor') {
$settings['allowedContent'] = TRUE;
}
}