diff --git a/modules/fields/mee/mee.module b/modules/fields/mee/mee.module index e38e137..95b79c9 100644 --- a/modules/fields/mee/mee.module +++ b/modules/fields/mee/mee.module @@ -144,6 +144,46 @@ function mee_ckeditor_plugin() { } /** + * Implements hook_editor_ckeditor_plugins(). + */ +function mee_editor_ckeditor_plugins() { + $plugins = array(); + $mee_store_format = mee_store_format(); + if ($mee_store_format == 'sas') { + $plugins['dnd'] = array( + 'name' => 'dnd', + 'desc' => t('Scald Drag and Drop integration'), + 'path' => drupal_get_path('module', 'mee') . '/plugins/ckeditor', + 'buttons' => array( + 'ScaldAtom' => array( + 'label' => t('Edit atom properties'), + 'image' => drupal_get_path('module', 'mee') . '/plugins/ckeditor/icons/atom.png', + ), + ), + 'file' => 'plugin.js', + 'enabled callback' => TRUE, + ); + } + elseif ($mee_store_format == 'embed_div') { + $plugins['dndck4'] = array( + 'name' => 'dndck4', + 'desc' => t('Scald Drag and Drop integration - CKEditor 4 widgets'), + 'path' => drupal_get_path('module', 'mee') . '/plugins/dndck4', + 'buttons' => array( + 'ScaldAtom' => array( + 'label' => t('Edit atom properties'), + 'image' => drupal_get_path('module', 'mee') . '/plugins/dndck4/icons/atom.png', + ), + ), + 'file' => 'plugin.js', + 'enabled callback' => TRUE, + ); + } + + return $plugins; +} + +/** * Implements hook_views_api(). */ function mee_views_api($module = NULL, $api = NULL) {