Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (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 by HelleM

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...