You are here

function hook_ckeditor_settings_alter in CKEditor - WYSIWYG HTML editor 7

Hook to extend/change the ckeditor settings.

This hook is invoked from ckeditor_profile_settings_compile(). The settings may be customized or enhanced; typically with options that cannot be controlled though the administrative UI from the ckeditor module.

Parameters

$settings: An associative array of settings.

$conf: An associative array with access to raw profile settings that might be helpful to alter the real $settings.

1 invocation of hook_ckeditor_settings_alter()
ckeditor_profile_settings_compile in includes/ckeditor.lib.inc
Compile settings of profile

File

./ckeditor.api.php, line 106
CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.

Code

function hook_ckeditor_settings_alter(&$settings, $conf) {

  // Change the ckeditor config path.
  $settings['customConfig'] = drupal_get_path('module', 'ckeditor') . '/ckeditor.config.js';
}