From 8ddab046c44e6f8f95a8b82fc492d7b0407389d1 Mon Sep 17 00:00:00 2001 From: pete Date: Fri, 23 Apr 2010 12:12:05 +0000 Subject: Updated longtext/tinymce area extra controls. Moved and updated ecml help link, 'edit/remove editor' link and 'add media' links both moved and improved. Redundant css removed. git-svn-id: http://code.elgg.org/elgg/trunk@5860 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/tinymce/views/default/input/longtext.php | 16 +++++++++++----- mod/tinymce/views/default/tinymce/css.php | 9 +++++---- 2 files changed, 16 insertions(+), 9 deletions(-) (limited to 'mod/tinymce/views/default') diff --git a/mod/tinymce/views/default/input/longtext.php b/mod/tinymce/views/default/input/longtext.php index 0c912d32e..4af26d7d6 100644 --- a/mod/tinymce/views/default/input/longtext.php +++ b/mod/tinymce/views/default/input/longtext.php @@ -73,10 +73,16 @@ tinyMCE.init({ } }); function toggleEditor(id) { -if (!tinyMCE.get(id)) - tinyMCE.execCommand('mceAddControl', false, id); -else - tinyMCE.execCommand('mceRemoveControl', false, id); + if (!tinyMCE.get(id)) { + tinyMCE.execCommand('mceAddControl', false, id); + + $("a.toggle_editor").html(''); + } + else { + tinyMCE.execCommand('mceRemoveControl', false, id); + + $("a.toggle_editor").html(''); + } } + -