You are here

function entity_embed_ckeditor_settings_alter in Entity Embed 7.2

Same name and namespace in other branches
  1. 7 entity_embed.ckeditor.inc \entity_embed_ckeditor_settings_alter()

Implements hook_ckeditor_settings_alter().

File

./entity_embed.ckeditor.inc, line 57
CKEditor integration for the entity_embed module.

Code

function entity_embed_ckeditor_settings_alter(&$settings, $conf) {

  // Add theme-independent styles for aligning content.
  $settings['contentsCss'][] = base_path() . drupal_get_path('module', 'entity_embed') . '/css/entity_embed.css';

  // Add base styles for accessibility, clearing, etc.
  $settings['contentsCss'][] = base_path() . drupal_get_path('module', 'system') . '/system.base.css';

  // Add styles for handling contextual links.
  if (module_exists('contextual')) {
    $settings['contentsCss'][] = base_path() . drupal_get_path('module', 'contextual') . '/contextual.css';
  }
}