View Single Post
  #116  
Old 04-03-2006, 05:41 AM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

Dynamic Drive just released an opensource (cross browser) WYSIWYG editor and it's excellent!

To get this to work without modifying any of the code of the WYSIWYG files, unzip the folder into your admin (not skin1/admin) directory.

It took me five minutes to implement on both the short and full descriptuions. Follow the instructions in the wysiwyg_beta.zip folder and implement the following:
Code:
<script language="JavaScript" type="text/javascript" src="wysiwyg.js"></script>
Right before the closing </HEAD> tag in skin1/admin/home.tpl

Then, open up /main/product_details.tpl and then just add:
Code:
<script language="JavaScript"> generate_wysiwyg('wysiwyg1'); </script>
directly after the </TEXTAREA> tag of the text area that you want to have WYSIWYG.

Add the id="wysiwyg1" to the TEXTAREA to correspond. Change the ID for multiple instances. This functionality is in X-Cart 4.1.x, but an easy (and free) implementation for earlier versions...

- Mike
__________________
4.1.9
Reply With Quote