From 7a069c1438eb0c6b84e9e93985722a34b4bca4e1 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Wed, 20 Jul 2011 11:08:42 +0200 Subject: Load tinyMCE on post editor only if needed. --- mod/editpost.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mod') diff --git a/mod/editpost.php b/mod/editpost.php index cd0bbf223..c396ee44b 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -80,7 +80,9 @@ function editpost_content(&$a) { call_hooks('jot_tool', $jotplugins); call_hooks('jot_networks', $jotnets); - $tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins)); + + //$tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins)); + $o .= replace_macros($tpl,array( '$return_path' => $_SESSION['return_url'], @@ -110,10 +112,10 @@ function editpost_content(&$a) { '$lockstate' => $lockstate, '$acl' => '', // populate_acl((($group) ? $group_acl : $a->user), $celeb), '$bang' => (($group) ? '!' : ''), - '$profile_uid' => $_SESSION['uid'] + '$profile_uid' => $_SESSION['uid'], + '$jotplugins' => $jotplugins, )); - return $o; } -- cgit v1.2.3