Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with WYSIWYG Pro


garyw365

Recommended Posts

Hi

 

Could anybody shed some light on how I would integrate WYSIWYG Pro (http://www.wysiwygpro.com/demos/demo6.php) into the admin area.

 

I have their test working fine but I am stuck when it comes to adding it to the OS code. Any help would be appreciated

 

This is their code:-

<?php ob_start(); ?>

<html>

<head>

<title>My Editor</title>

</head>

<body>

<form name="wysiwygproForm" method="post" action="" onSubmit=?submit_form()?>

<?php

// include the config file and editor class:

include_once ('editor_files/config.php');

include_once ('editor_files/editor_class.php');

// create a new instance of the wysiwygPro class:

$editor = new wysiwygPro();

// print the editor to the browser:

$editor->print_editor(700, 400);

?>

</form>

</body>

</html>

<?php ob_end_flush(); ?>

 

I want to add it to the product description for example which is this line

 

<?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?>

 

Any comments would be appreciated.

Many thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...