You are here

function n1ed_editor_js_settings_alter in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8

Same name and namespace in other branches
  1. 8.2 n1ed.module \n1ed_editor_js_settings_alter()

File

./n1ed.module, line 25
Main code for N1ED module.

Code

function n1ed_editor_js_settings_alter(array &$settings) {
  error_log('/' . drupal_get_path('module', 'n1ed') . "/js/skin/n1ed/");
  foreach (array_keys($settings['editor']['formats']) as $text_format_id) {
    if ($settings['editor']['formats'][$text_format_id]['editor'] === 'ckeditor') {
      $settings['editor']['formats'][$text_format_id]['editorSettings']['skin'] = 'n1ed,/' . drupal_get_path('module', 'n1ed') . "/js/skin/n1ed/";
    }
  }
}