function linkit_wysiwyg_plugin in Linkit 7.2
Same name and namespace in other branches
- 6 linkit.module \linkit_wysiwyg_plugin()
- 7.3 linkit.module \linkit_wysiwyg_plugin()
- 7 linkit.module \linkit_wysiwyg_plugin()
Implements hook_wysiwyg_plugin().
File
- ./
linkit.module, line 565 - Main file for linkit module.
Code
function linkit_wysiwyg_plugin($editor, $version) {
$plugin = array();
_linkit_add_settings($editor);
$plugin['linkit'] = array(
'path' => drupal_get_path('module', 'linkit') . '/editors/' . $editor,
'buttons' => array(
'linkit' => t('Linkit'),
),
'url' => 'http://drupal.org/project/linkit',
'load' => TRUE,
);
// TinyMCE needs to know the filename.
if ($editor == 'tinymce') {
$plugin['linkit']['filename'] = 'editor_plugin.js';
}
return $plugin;
}