Using Joomla Editor in Custom Component !

Need help with a WYSIWYG-editor in Joomla! 1.0.x? This is the place to be.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
alex_funky_dj
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Sun Dec 18, 2005 7:26 pm

Using Joomla Editor in Custom Component !

Post by alex_funky_dj » Tue Oct 30, 2007 10:18 pm

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 !

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24974
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Using Joomla Editor in Custom Component !

Post by pe7er » Tue Oct 30, 2007 11:50 pm

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' ) ;
?>
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

User avatar
SimpleNL
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Sat Aug 11, 2007 1:03 pm
Location: Amsterdam, Netherlands

Re: Using Joomla Editor in Custom Component !

Post by SimpleNL » Fri Nov 02, 2007 3:06 pm

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?
Webdeveloper - Van Eldijk Studio's
http://www.vaneldijk.nl

User avatar
carsten888
Joomla! Ace
Joomla! Ace
Posts: 1224
Joined: Sat Feb 11, 2006 8:32 am
Contact:

Re: Using Joomla Editor in Custom Component !

Post by carsten888 » Wed Apr 02, 2008 2:40 pm

http://www.pages-and-items.com my extensions:
User-Private-Page, Redirect-on-Login, Admin-Help-Pages, Dynamic-Menu-Links, Admin-Menu-Manager, plugin load module in article, plugin pure css tooltip and more...

williamh
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Jul 28, 2011 5:19 pm

Re: Using Joomla Editor in Custom Component !

Post by williamh » Wed Aug 01, 2012 2:05 am

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' ) ; ?>


Locked

Return to “WYSIWYG Editors - 1.0.x”