function tinymce_init in TinyMCE 7
Implements hook_init().
File
- ./
tinymce.module, line 84
Code
function tinymce_init() {
// Add our CSS file that adds common needed classes, such as align-left,
// align-right, underline, indent, etc.
drupal_add_css(drupal_get_path('module', 'tinymce') . '/css/tinymce.css');
// In Drupal 8 these settings are added by hook_library(), but the D7 version
// doesn't have a library for integration because it uses WYSIWYG API.
$settings = array(
'tinymce' => array(
'modulePath' => drupal_get_path('module', 'tinymce'),
),
);
drupal_add_js($settings, array(
'type' => 'setting',
));
}