function tinymce_library in TinyMCE 7
Implements hook_library().
File
- ./
tinymce.module, line 41
Code
function tinymce_library() {
$module_path = drupal_get_path('module', 'tinymce');
$libraries['drupal.tinymce.admin'] = array(
'title' => 'Drupal behavior to enable TinyMCE on textareas.',
'version' => VERSION,
'js' => array(
$module_path . '/js/tinymce.admin.js' => array(),
),
'css' => array(
$module_path . '/css/tinymce.admin.css' => array(),
),
'dependencies' => array(
array(
'system',
'jquery.once',
),
array(
'system',
'ui.sortable',
),
array(
'system',
'ui.draggable',
),
),
);
$libraries['tinymce'] = array(
'title' => 'Loads the main TinyMCE library.',
'version' => TINYMCE_VERSION,
'js' => array(
$module_path . '/lib/tinymce/tinymce.js' => array(),
),
);
return $libraries;
}