function mee_editor_ckeditor_plugins in Scald: Media Management made easy 7
Implements hook_editor_ckeditor_plugins().
File
- modules/
fields/ mee/ mee.module, line 149 - Defines a special textarea, with drag and drop media driven by Scald and dnd.module.
Code
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;
}