From 0cc638aed896135a3b2954bc990c2dcd6621b26e Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 19 Feb 2011 18:55:47 +0000 Subject: fixed tinymce "remove editor" javascript git-svn-id: http://code.elgg.org/elgg/trunk@8341 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/tinymce/views/default/input/longtext.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'mod/tinymce/views') diff --git a/mod/tinymce/views/default/input/longtext.php b/mod/tinymce/views/default/input/longtext.php index 1d449262f..9124a89b5 100644 --- a/mod/tinymce/views/default/input/longtext.php +++ b/mod/tinymce/views/default/input/longtext.php @@ -4,10 +4,10 @@ * * @package ElggTinyMCE * - * @uses $vars['value'] The current value, if any - * @uses $vars['js'] Any Javascript to enter into the input tag - * @uses $vars['name'] The name of the input field - * @uses $vars['id'] The id of the input field + * @uses $vars['value'] The current value, if any + * @uses $vars['js'] Any Javascript to enter into the input tag + * @uses $vars['name'] The name of the input field + * @uses $vars['id'] The id of the input field * */ @@ -17,12 +17,16 @@ elgg_register_js('mod/tinymce/vendor/tinymce/jscripts/tiny_mce/tiny_mce.js', 'ti elgg_unextend_view('footer/analytics', 'tinymce/init'); elgg_extend_view('footer/analytics', 'tinymce/init'); +if (!isset($vars['id'])) { + $vars['id'] = 'tinymce-longtext-' . rand(); +} + ?> - + - -- cgit v1.2.3