You are here

function pasteformat_wysiwyg_plugin in Paste Format (filter, clean-up pasted text) 7

Same name and namespace in other branches
  1. 6 pasteformat.module \pasteformat_wysiwyg_plugin()

Implements hook_wysiwyg_plugin().

File

./pasteformat.module, line 74
Main file for Paste Format module.

Code

function pasteformat_wysiwyg_plugin($editor, $version) {
  if ($editor == 'ckeditor') {
    return array(
      'pasteformat' => array(
        'url' => 'http://drupal.org/project/pasteformat',
        'path' => drupal_get_path('module', 'pasteformat') . '/plugins/pasteformat/',
        'file' => 'plugin.js',
        'extensions' => array(
          'pasteformat' => t('Paste Format'),
        ),
        'load' => TRUE,
      ),
    );
  }
}