function ckeditor_init in CKEditor for WYSIWYG Module 7
Implements hook_init().
File
- ./
ckeditor.module, line 85
Code
function ckeditor_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', 'ckeditor') . '/css/ckeditor.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(
'ckeditor' => array(
'modulePath' => drupal_get_path('module', 'ckeditor'),
),
);
drupal_add_js($settings, array(
'type' => 'setting',
));
}