You are here

function editor_editor_plugins in Editor 5

Same name and namespace in other branches
  1. 6 editor.plugins.inc \editor_editor_plugins()

Implementation of hook_editor_plugins();

File

./editor.plugins.inc, line 13
Provides default plugin objects. @author Tj Holowaychuk <http://www.350designs.com/> @package Editor

Code

function editor_editor_plugins() {
  $plugins = array();

  // Misc
  $plugins[] = editor_plugin_create('undo', t('Undo'), 'button', t('Undo recent changes made.'));
  $plugins[] = editor_plugin_create('redo', t('Redo'), 'button', t('Redo recent changes which were undone.'));
  $plugins[] = editor_plugin_create('code', t('Code'), 'button', t('Create a code block.'), editor_plugin_code_options());
  $plugins[] = editor_plugin_create('image', t('Image'), 'button', t('Create an image.'), editor_plugin_image_options());
  $plugins[] = editor_plugin_create('html', t('View HTML'), 'button', t('Toggle HTML viewing mode.'));
  $plugins[] = editor_plugin_create('remove_format', t('Remove Formatting'), 'button', t('Removes on selected text and objects.'));

  // Font related
  $plugins[] = editor_plugin_create('bold', t('Bold'), 'button', t('Create bold text.'));
  $plugins[] = editor_plugin_create('italic', t('Italic'), 'button', t('Create italic text.'));

  // Alignment
  $plugins[] = editor_plugin_create('align_left', t('Align Left'), 'button', t('Align content to the left.'));
  $plugins[] = editor_plugin_create('align_center', t('Align Center'), 'button', t('Center align content.'));
  $plugins[] = editor_plugin_create('align_right', t('Align Right'), 'button', t('Align content to the right.'));
  $plugins[] = editor_plugin_create('align_justify', t('Align Jistify'), 'button', t('Align content as justified.'));

  // Lists
  $plugins[] = editor_plugin_create('list_numeric', t('Numeric List'), 'button', t('Create a ordered list from selected text or caret position.'));
  $plugins[] = editor_plugin_create('list_bullet', t('Bullet List'), 'button', t('Create a unordered list from selected txt or caret position.'));

  // Links
  $plugins[] = editor_plugin_create('link', t('Link'), 'button', t('Link selected text or content to a website or page.'), editor_plugin_link_options());
  $plugins[] = editor_plugin_create('mailto', t('Email Link'), 'button', t('Link selected text or content to an email.'), editor_plugin_mailto_options());
  return $plugins;
}