Page 1 of 1

Using Joomla Editor in Custom Component !

Posted: Tue Oct 30, 2007 10:18 pm
by alex_funky_dj
I'm creating a forms simple component , how can I enable Joomla editor for a text area, and how can I customize the buttons ??

Thanks for your attention !

Re: Using Joomla Editor in Custom Component !

Posted: Tue Oct 30, 2007 11:50 pm
by pe7er
I don't know how to customize the buttons, but you could analyse \components\com_content\content.html.php to see how Joomla uses the editor. Look for:
introtext , 'introtext', '600', '400', '70', '15' ) ;
?>

Re: Using Joomla Editor in Custom Component !

Posted: Fri Nov 02, 2007 3:06 pm
by SimpleNL
Hey, I want to know how this works as well, I'm trying to implement an editor in a component, but I run into trouble when trying to save the content of it. It simply won't save the HTML for it. I've been checking other components and it seems that the following functions are quite common in those:
  • mosMakeHTMLSafe()
  • getEditorContents()
But I really don't know how to make any of it work... Could anyone point me in the right direction?

Re: Using Joomla Editor in Custom Component !

Posted: Wed Apr 02, 2008 2:40 pm
by carsten888

Re: Using Joomla Editor in Custom Component !

Posted: Wed Aug 01, 2012 2:05 am
by williamh
I think you can try like this:

<?php $editor = & JFactory::getEditor() ; ?>
<?php echo $editor->display( 'short_description', $this->item->short_description , '100%', '180', '90', '6' ) ; ?>