You are here

function _wysiwyg_wymeditor_button_info in Wysiwyg 7.2

Same name and namespace in other branches
  1. 5.2 editors/wymeditor.inc \_wysiwyg_wymeditor_button_info()
  2. 6.2 editors/wymeditor.inc \_wysiwyg_wymeditor_button_info()

Helper function to provide additional meta-data for internal default buttons.

1 call to _wysiwyg_wymeditor_button_info()
wysiwyg_wymeditor_settings in editors/wymeditor.inc
Return runtime editor settings for a given wysiwyg profile.

File

editors/wymeditor.inc, line 259
Editor integration functions for WYMeditor.

Code

function _wysiwyg_wymeditor_button_info($version) {
  $info = array(
    'Bold' => array(
      'title' => 'Strong',
      'css' => 'wym_tools_strong',
    ),
    'Italic' => array(
      'title' => 'Emphasis',
      'css' => 'wym_tools_emphasis',
    ),
    'Superscript' => array(
      'title' => 'Superscript',
      'css' => 'wym_tools_superscript',
    ),
    'Subscript' => array(
      'title' => 'Subscript',
      'css' => 'wym_tools_subscript',
    ),
    'InsertOrderedList' => array(
      'title' => 'Ordered_List',
      'css' => 'wym_tools_ordered_list',
    ),
    'InsertUnorderedList' => array(
      'title' => 'Unordered_List',
      'css' => 'wym_tools_unordered_list',
    ),
    'Indent' => array(
      'title' => 'Indent',
      'css' => 'wym_tools_indent',
    ),
    'Outdent' => array(
      'title' => 'Outdent',
      'css' => 'wym_tools_outdent',
    ),
    'Undo' => array(
      'title' => 'Undo',
      'css' => 'wym_tools_undo',
    ),
    'Redo' => array(
      'title' => 'Redo',
      'css' => 'wym_tools_redo',
    ),
    'CreateLink' => array(
      'title' => 'Link',
      'css' => 'wym_tools_link',
    ),
    'Unlink' => array(
      'title' => 'Unlink',
      'css' => 'wym_tools_unlink',
    ),
    'InsertImage' => array(
      'title' => 'Image',
      'css' => 'wym_tools_image',
    ),
    'InsertTable' => array(
      'title' => 'Table',
      'css' => 'wym_tools_table',
    ),
    'Paste' => array(
      'title' => 'Paste_From_Word',
      'css' => 'wym_tools_paste',
    ),
    'ToggleHtml' => array(
      'title' => 'HTML',
      'css' => 'wym_tools_html',
    ),
    'Preview' => array(
      'title' => 'Preview',
      'css' => 'wym_tools_preview',
    ),
  );
  if (version_compare($version, '1.0.0-rc2', '>=')) {
    foreach (array(
      'CreateLink',
      'InsertImage',
      'InsertTable',
      'Paste',
      'Preview',
    ) as $button) {
      $info[$button]['css'] .= ' wym_opens_dialog';
    }
  }
  return $info;
}