Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

b2bsuite and htmlarea 3


agitated

Recommended Posts

Hi just been testing the b2bsuite with oscommerce downloaded from http://www.caneblu.com and added the htmlarea v3 to it.

 

I can get the tool bar to show okay, but the text area wont display, just the tools bars. I had to change the following code for the text area to show...

 

HTMLArea.Config = function () {

this.version = "3.0";

 

this.width = "auto";

this.height = "auto";

 

to

 

HTMLArea.Config = function () {

this.version = "3.0";

 

this.width = "550";

this.height = "400";

 

This works for in IE and Firefox, but firefox does something strange and just keeps loading and wont let me type my text in.

 

 

I am only using this in the categories.php in the admin section. Here is the code that i changed in order for the toolbar to show up.

 

 

<!-- DWD Modify -> Add: HTMLArea v3.0 !-->

<!-- Load HTMLArea Core Files. !-->

<script type="text/javascript" src="htmlarea/htmlarea.js"></script>

<script type="text/javascript" src="htmlarea/dialog.js"></script>

<script type="text/javascript" src="htmlarea/lang/en.js"></script>

 

<!-- Load HTMLArea Plugins. !-->

<script type="text/javascript">

HTMLArea.loadPlugin("TableOperations");

HTMLArea.loadPlugin("SpellChecker");

</script>

 

<!-- Load HTMLArea StyleSheet. !-->

<style type="text/css">

@import url(htmlarea/htmlarea.css);

</style>

<!-- DWD Modify End. !-->

<script language="javascript" src="includes/general.js"></script>

</head>

<!-- DWD Modify -> Replace: HTMLArea v3.0 !-->

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus(); HTMLArea.replaceAll()">

<!-- DWD Modify End. !-->

 

and

 

<td class="main"><?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '100%','20', (isset($products_description[$languages[$i]['id']]) ? $products_description[$languages[$i]['id']] : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td>

 

 

any ideas where this might be going wrong? thanks.....

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...