HelleM Posted October 30, 2006 Posted October 30, 2006 (edited) Just installed OS all over Uploaded all tinyMCE files. Read that I could do this: ______________________________________ Run this mod on your database INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) values ('10001','TinyMCE', 'TinyMCE Display', '100001', '1' ); INSERT into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added) values ('Display TinyMCE', 'TINYMCE_DISPLAY', 'true', 'Set to true or false in order to display TinyMCE.', '10001', '1', now(), now() ); Now you have a TinyMCE entry to set true or false in Admin > Configuration Then open /admin/includes/header.php Find these lines (cause you do have TinyMCE installed already right?) <script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script> <script language="javascript" type="text/javascript"> tinyMCE.init({ mode : "textareas" }); </script> and replace them with <?php if(TINYMCE_DISPLAY == 'true') { ECHO '<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script> <script language="javascript" type="text/javascript"> tinyMCE.init({ mode : "textareas" }); </script>'; } else { ECHO 'TinyMCE is Disabled. Set this value "true" under Configuration > TinyMCE to use TinyMCE.'; } ?> Wolla! Now you can switch TinyMCE on or off at will. Enjoy! Iggy ________________________________ Did all this - but I keep getting this javascript error ALL the time. What am I missing?? 'tinyMCE is not defined' *it's driving me nuts* Please help Helle :-( Edited October 30, 2006 by HelleM Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.