From 8ad9fcab2b94f8171bde863fc4c6cb3923717955 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 1 Mar 2011 21:28:13 +0000 Subject: fixed tinymce js code so that at least it doesn't have syntax errors and runtime exceptions git-svn-id: http://code.elgg.org/elgg/trunk@8543 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/tinymce/views/default/js/tinymce.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod/tinymce/views/default') diff --git a/mod/tinymce/views/default/js/tinymce.php b/mod/tinymce/views/default/js/tinymce.php index adff52129..09fbee2ad 100644 --- a/mod/tinymce/views/default/js/tinymce.php +++ b/mod/tinymce/views/default/js/tinymce.php @@ -1,3 +1,5 @@ +elgg.provide('elgg.tinymce'); + elgg.tinymce.toggleEditor = function(id) { if (!tinyMCE.get(id)) { tinyMCE.execCommand('mceAddControl', false, id); @@ -54,6 +56,6 @@ elgg.tinymce.init = function() { tinyMCE.triggerSave(); }); -}); +} elgg.register_event_handler('init', 'system', elgg.tinymce.init); \ No newline at end of file -- cgit v1.2.3