diff options
-rw-r--r-- | mod/tinymce/start.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/tinymce/start.php b/mod/tinymce/start.php index 89c378376..29ffa1835 100644 --- a/mod/tinymce/start.php +++ b/mod/tinymce/start.php @@ -18,12 +18,12 @@ function tinymce_init() { function tinymce_longtext_menu($hook, $type, $items, $vars) { - $items[] = array( + $items[] = ElggMenuItem::factory(array( 'name' => 'tinymce_toggler', 'class' => 'tinymce-toggle-editor', 'href' => "javascript:elgg.tinymce.toggleEditor('{$vars['id']}');", 'text' => elgg_echo('tinymce:remove'), - ); + )); return $items; } |