Enable JFactory / EDITOR in Short Description

13.05.2013 17:45
#1
Mercieca
Joomshopping forum user no avatar
Name: Jo
16.04.2013
Posts: 3
Quote
Enable JFactory / EDITOR in Short Description

Hello, the backend product page contains a short description which is just a textarea box unlike the Description field.

I accessed the description.php file located in :

administrator/com_jshopping/views/product_edit/tmpl/ where I created this entry:

<td class="key">
<?php echo _JSHOP_SHORT_DESCRIPTION;?>
</td>
<td>
<?php
$editor = JFactory::getEditor();
print $editor->display('short_description'.$lang->id, $row->$short_description , '100%', '350', '75', '20' ) ;
?>

</td>

The problem I have is that everytime I save the page, all text disappears.

Do you have any ideas and steps on how to enable such feature? Basically I need that so to add shortcodes for mediaplayers.

Thanks

 
Copyrights MAXXmarketing GmbH. All Rights Reserved