You are here

function _wysiwyg_ckeditor_proxy_plugin_settings in Wysiwyg 7.2

Same name and namespace in other branches
  1. 6.2 editors/ckeditor.inc \_wysiwyg_ckeditor_proxy_plugin_settings()

Build a JS settings array for Drupal plugins loaded via the proxy plugin.

1 string reference to '_wysiwyg_ckeditor_proxy_plugin_settings'
wysiwyg_ckeditor_editor in editors/ckeditor.inc
Plugin implementation of hook_editor().

File

editors/ckeditor.inc, line 734
Editor integration functions for CKEditor.

Code

function _wysiwyg_ckeditor_proxy_plugin_settings($editor, $profile, $plugins) {
  $settings = array();
  foreach ($plugins as $name => $plugin) {

    // Just need a list of all enabled plugins for each instance.
    $settings[$name] = TRUE;
  }
  return $settings;
}