--- ../asset.module 2008-07-16 21:39:09.000000000 +0200
+++ asset.module 2008-08-05 21:00:21.000000000 +0200
@@ -1078,3 +1078,18 @@ function theme_asset_textarea_link($elem
$output .='
'. $link .'
';
return $output;
}
+
+/**
+ * Wysiwyg hook
+ */
+function asset_wysiwyg_plugin($editor) {
+ switch ($editor) {
+ case 'tinymce':
+ return array(
+ 'drupalasset' => array(
+ 'path' => drupal_get_path('module', 'asset') .'/tinymce/drupalasset',
+ 'buttons' => array('drupalasset' => 'DrupalAsset'),
+ )
+ );
+ }
+}