You are here

function _wysiwyg_nicedit_plugins in Wysiwyg 7.2

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

Return internal plugins for this editor; semi-implementation of hook_wysiwyg_plugin().

1 string reference to '_wysiwyg_nicedit_plugins'
wysiwyg_nicedit_editor in editors/nicedit.inc
Plugin implementation of hook_editor().

File

editors/nicedit.inc, line 115
Editor integration functions for NicEdit.

Code

function _wysiwyg_nicedit_plugins($editor) {
  return array(
    'default' => array(
      'buttons' => array(
        'bold' => t('Bold'),
        'italic' => t('Italic'),
        'underline' => t('Underline'),
        'strikethrough' => t('Strike-through'),
        'left' => t('Align left'),
        'center' => t('Align center'),
        'right' => t('Align right'),
        'ul' => t('Bullet list'),
        'ol' => t('Numbered list'),
        'outdent' => t('Outdent'),
        'indent' => t('Indent'),
        'image' => t('Image'),
        'forecolor' => t('Forecolor'),
        'bgcolor' => t('Backcolor'),
        'superscript' => t('Superscript'),
        'subscript' => t('Subscript'),
        'hr' => t('Horizontal rule'),
        // @todo New challenge: Optional internal plugins packaged into editor
        //   library.
        'link' => t('Link'),
        'unlink' => t('Unlink'),
        'fontFormat' => t('HTML block format'),
        'fontFamily' => t('Font'),
        'fontSize' => t('Font size'),
        'xhtml' => t('Source code'),
      ),
      'internal' => TRUE,
    ),
  );
}