Hello,
I have replace the textarea field in virtuemart with the ckeditor.
The problem is once i add to cart the data do not appear to the cart page, while if i keep the the original textarea the text typed will be displayed in the cart page.
i am using the following code to display the editor
<?php
$edvalue= 'customPlugin['.$viewData[0]->virtuemart_customfield_id.']['.$this->_name.'][comment]';
$enedvalue= $this->product->product_s_desc;
$editor = JFactory::getEditor();
$html = $editor->display($edvalue, $enedvalue, '100%', '400', '70', '15',false); // false = no bottom buttons
$document =& JFactory::getDocument();
$document->_script["text/javascript"] = ""; // prevent scripts.
echo $html; // or return $html or whatever
?>
and the original textarea is
<textarea
id="<?php echo $viewData[0]->virtuemart_customfield_id; ?>"
class="<?php echo $class.$validate; ?> field"
rows="<?php echo $this->params->custom_rows ?>"
cols="<?php echo $this->params->custom_cols ?>"
name="customPlugin[<?php echo $viewData[0]->virtuemart_customfield_id ?>][<?php echo $this->_name?>][comment]"><?php echo $this->params->custom_emptytext ?>
</textarea>
How do i get to use use the editor and pass the text type?
Thanks in advance
