Guest Posted September 8, 2005 Share Posted September 8, 2005 Hi i am going to use HTMLarea to edit the text on my oscommerce site. but need a bit of guidence. this is what i have to do to any pages i want to be able to use the editor with. Define some global variables. "_editor_url" has to be the absolute URL where HTMLArea resides within your website; as we discussed, this would be ?/htmlarea/?. "_editor_lang" must be the language code in which you want HTMLArea to appear. This defaults to "en" (English); for a list of supported languages, please look into the "lang" subdirectory in the distribution. <script type="text/javascript"> _editor_url = "/htmlarea/"; _editor_lang = "en"; </script> Include the "htmlarea.js" script: <script type="text/javascript" src="/htmlarea/htmlarea.js"></script> If you want to change all your <textarea>-s into HTMLArea-s then you can use the simplest way to create HTMLArea: <script type="text/javascript" defer="1"> HTMLArea.replaceAll(); </script> --- so i need to add the above two bits of code to the pages i want to edit. In Oscommerce what pages are these? Do I add the above to .php files? if so which ones do you think i should add it to? do you think what i'm trying to do will work? thanks, gary. Link to comment Share on other sites More sharing options...
Guest Posted September 8, 2005 Share Posted September 8, 2005 I dont know how to delete my last post but i've recently discovered a contrib that purportedly works with htmlarea, so i'll give it a try, many thanks- gary. Link to comment Share on other sites More sharing options...
Guest Posted September 8, 2005 Share Posted September 8, 2005 ok unfortunately the contrib is well out of date for htmlarea. (2003) the last entry for the contrib is yesterday, but the file that is attached to that entry is an empty zip file.. all in all i find the whole contrib layout very confusing... there should be a link which says something like 'latest version' which gives you the current latest version of the contrib, and it would be a good idea if the contrib's were reviewed so empty zips couldn't get through. I know this whole thing relies on a lot of effort from some very generous people, and thats awesome. please help I just want to get html area working with oscommerce 2.2 (which the contrib says it will do.) thanks, gary. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.