You are here

function wysiwyg_nicedit_plugins in Wysiwyg 5

Same name and namespace in other branches
  1. 5.2 editors/nicedit.inc \wysiwyg_nicedit_plugins()
  2. 6 editors/nicedit.inc \wysiwyg_nicedit_plugins()

Return internal plugins for nicEdit; 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 96

Code

function wysiwyg_nicedit_plugins($editor) {
  return array(
    'default' => array(
      #'path' => $editor['library path'] .'/themes/advanced',
      '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('Sup'),
        'subscript' => t('Sub'),
        '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,
    ),
  );
}