X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Want a WYSIWYG detailed description text area? (https://forum.x-cart.com/showthread.php?t=7407)

Emerson 05-02-2004 08:27 AM

Want a WYSIWYG detailed description text area?
Does anyone have a need for a WYSIWYG mod for your detailed description text area?

Here is what it looks like...


If anyone wants it, I'll put a howto together ;)

adpboss 05-02-2004 08:46 AM


Only finished mods here. Post it!!!

Don't tease us!



Emerson 05-02-2004 09:11 AM

Hello everyone!
Just a little something you might find usefull.

After installation, you'll be able to use the Full Description are as a WYSIWYG editor. Kind of like FrontPage and Dreamweaver.

You can find details about it at http://www.interactivetools.com/products/htmlarea/documentation.html

Here we go...

First download the file from http://www.ewdhosting.com/htmlarea.zip

Unzip it to your computer and upload the entire 'htmlarea" folder into your xcart root directory (eg: /xcart/htmlarea )

Now open the following (according to your version) and add the following right in between the <head> and </head> tags...

Pro: open /xcart/skin1/admin/home.tpl
Gold: open /xcart/skin1/single/home.tpl


<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>


Now open /xcart/skin1/main/product_modify.tpl and add the following to the top of the file...


<script language="JavaScript1.2" defer>

That should be it!

Now log into to admin and try to add or edit a product. Your detailed description box should be just like the screenshot in the first post ;)

70challenger 05-02-2004 11:10 AM

I could only find home.tpl in customer, fulfilment and single? Using the lastest 3.5 xcart version.

Emerson 05-02-2004 11:29 AM

That is weird!
You should definitely have that file in the admin directory.

adpboss 05-02-2004 11:31 AM

it's single/home.tpl

Emerson 05-02-2004 01:49 PM

Sorry about the mix up.
I have updated the howto to show which file to edit depending on your version of xcart ;)

POSDepot 05-04-2004 04:25 AM

htmlarea - working?
Looking for confirmation that someone else has this working?

I'm on 3.5.3 Gold and I can't seem to get the HTML editor to show up.


carlisleglass 05-04-2004 04:52 AM

I'm running v3.5.7 and it aint showing up on mine either !

Emerson 05-04-2004 04:54 AM

Please post the path to your xcart install and the path for the htmlarea directory.

All times are GMT -8. The time now is 04:08 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.