From b1ac8f80a776fa6e7f933a7156da0c9393f47e71 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 1 Mar 2011 21:17:56 +0000 Subject: fixes tinymce longtext registration git-svn-id: http://code.elgg.org/elgg/trunk@8541 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/tinymce/start.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod') 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; } -- cgit v1.2.3