From bfb0a3e9b289e4036bfeb3e694586387fc4f904e Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 12 Mar 2011 22:25:02 +0000 Subject: Fixes #3091 adds load functions for js and css git-svn-id: http://code.elgg.org/elgg/trunk@8675 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/tinymce/start.php | 3 +++ mod/tinymce/views/default/tinymce/init.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'mod/tinymce') diff --git a/mod/tinymce/start.php b/mod/tinymce/start.php index 81667f8d5..1b641ff86 100644 --- a/mod/tinymce/start.php +++ b/mod/tinymce/start.php @@ -8,6 +8,9 @@ function tinymce_init() { elgg_extend_view('css/elgg', 'tinymce/css'); elgg_extend_view('css/admin', 'tinymce/css'); + + elgg_register_js('tinymce', 'mod/tinymce/vendor/tinymce/jscripts/tiny_mce/tiny_mce.js'); + elgg_register_js('elgg.tinymce', elgg_get_simplecache_url('js', 'tinymce')); elgg_extend_view('input/longtext', 'tinymce/init'); diff --git a/mod/tinymce/views/default/tinymce/init.php b/mod/tinymce/views/default/tinymce/init.php index 3fe08771c..35dd71613 100644 --- a/mod/tinymce/views/default/tinymce/init.php +++ b/mod/tinymce/views/default/tinymce/init.php @@ -3,5 +3,5 @@ * Initialize the TinyMCE script */ -elgg_register_js('tinymce', 'mod/tinymce/vendor/tinymce/jscripts/tiny_mce/tiny_mce.js'); -elgg_register_js('elgg.tinymce', elgg_get_simplecache_url('js', 'tinymce')); \ No newline at end of file +elgg_load_js('tinymce'); +elgg_load_js('elgg.tinymce'); \ No newline at end of file -- cgit v1.2.3