Here we go...
HTML Area for the Gift Registry addon 4.x.
This assumes that you have the htmlarea directory inside the root of your cart. (eg. /xcart/htmlarea/)
Open skin1/customer/home.tpl and in between the <HEAD></HEAD> tags add:
Code:
{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+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>
{/literal}
Now open /skin1/modules/Gift_Registry/event_modify.tpl
and find:
Code:
<TEXTAREA cols="50" rows="20" name="event_details[html_content]">{$event_data.html_content}</TEXTAREA>
and
right above that add the following:
Code:
{literal}<script language="JavaScript1.2" defer>
editor_generate('event_details[html_content]');
</script>
{/literal}
And that should do it.
HTH