From d3334ef71b8e71e0db6c463436555f406941d5c9 Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 11 Mar 2010 19:14:32 +0000 Subject: Implemented sticky forms. git-svn-id: http://code.elgg.org/elgg/trunk@5368 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/tinymce/views/default/input/longtext.php | 44 +++++++++++++++------------- 1 file changed, 24 insertions(+), 20 deletions(-) (limited to 'mod/tinymce') diff --git a/mod/tinymce/views/default/input/longtext.php b/mod/tinymce/views/default/input/longtext.php index 2907e1322..1ab7df1ff 100644 --- a/mod/tinymce/views/default/input/longtext.php +++ b/mod/tinymce/views/default/input/longtext.php @@ -3,33 +3,37 @@ /** * Elgg long text input with the tinymce text editor intacts * Displays a long text input field - * + * * @package ElggTinyMCE * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider Ltd * @copyright Curverider Ltd 2008-2010 * @link http://elgg.org/ - * + * * @uses $vars['value'] The current value, if any * @uses $vars['js'] Any Javascript to enter into the input tag * @uses $vars['internalname'] The name of the input field - * + * */ global $tinymce_js_loaded; - + + if (!isset($vars['value']) || $vars['value'] === FALSE) { + $vars['value'] = elgg_get_sticky_value($vars['internalname']); + } + $input = rand(0,9999); - + if (!isset($tinymce_js_loaded)) $tinymce_js_loaded = false; if (!$tinymce_js_loaded) { - + ?>