You are here

function wysiwyg_get_editor in Wysiwyg 5.2

Same name and namespace in other branches
  1. 5 wysiwyg.module \wysiwyg_get_editor()
  2. 6.2 wysiwyg.module \wysiwyg_get_editor()
  3. 6 wysiwyg.module \wysiwyg_get_editor()
  4. 7.2 wysiwyg.module \wysiwyg_get_editor()

Return library information for a given editor.

Parameters

$name: The internal name of an editor.

Return value

The library information for the editor, or FALSE if $name is unknown or not installed properly.

Related topics

6 calls to wysiwyg_get_editor()
wysiwyg_add_plugin_settings in ./wysiwyg.module
Add settings for external plugins.
wysiwyg_get_editor_config in ./wysiwyg.module
Return an array of initial editor settings for a Wysiwyg profile.
wysiwyg_get_editor_themes in ./wysiwyg.module
Retrieve available themes for an editor.
wysiwyg_get_plugins in ./wysiwyg.module
Return plugin metadata from the plugin registry.
wysiwyg_load_editor in ./wysiwyg.module
Load an editor library and initialize basic Wysiwyg settings.

... See full list

File

./wysiwyg.module, line 666
Integrate client-side editors with Drupal.

Code

function wysiwyg_get_editor($name) {
  $editors = wysiwyg_get_all_editors();
  return isset($editors[$name]) && $editors[$name]['installed'] ? $editors[$name] : FALSE;
}