View Single Post
  #48  
Old 01-07-2005, 11:23 PM
 
KeeYoung Hartley KeeYoung Hartley is offline
 

Newbie
  
Join Date: Nov 2004
Posts: 2
 

Default htmlarea3 and x-cart 4.0.9 - Please help

Can anyone offer suggestions to integrate htmlarea3 with X-cart 4.0.9 ?? I need to have the htmlarea3 because of the compatability with Mac - I have read the threads on integrating previous versions.. thought I could just rename the editor.js with the htmlarea.js... with no luck. I'm fairly new to this - any help would be very much appreciated!!

After reading threads in this forum and reading the documentation for htmlarea3 release, I've tried the following combinations:

#1 - skin1/single/home.tpl:

Code:
<head> {literal} <script language="Javascript1.2"><!-- // load htmlarea _editor_url = "../../htmlarea/"; // URL to htmlarea files var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]); if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; } if (win_ie_ver >= 5.5) { document.write('<scr' + 'ipt src="' +_editor_url+ 'htmlarea.js"'); document.write(' language="Javascript1.2"></scr' + 'ipt>'); } else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); } // --></script> {/literal} </head>

skin1/main/product_modify.tpl:

Code:
<script language="JavaScript1.2" defer> editor_generate('fulldescr'); </script>

#2 - skin1/single/home.tpl:

Code:
<script type="text/javascript"> _editor_url = "../../htmlarea/"; _editor_lang = "en"; </script> <script type="text/javascript" src="../../htmlarea/htmlarea.js"></script> <script type="text/javascript" defer="1"> HTMLArea.replaceAll(); </script>

skin1/main/product_modify.tpl:

Code:
<script type="text/javascript"> _editor_url = "../../htmlarea/"; _editor_lang = "en"; </script> <script type="text/javascript" src="../../htmlarea/htmlarea.js"></script> <script type="text/javascript" defer="1"> HTMLArea.replaceAll(); </script>


I also double-checked my htmlarea folder location. Again, any help would be greatly appreciated!!
[/code]
__________________
X-Cart Gold v4.1.3
Reply With Quote