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.
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Sun Dec 18, 2005 7:26 pm

Using Joomla Editor in Custom Component !

Postby 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
Joomla! Master
Joomla! Master
Posts: 21941
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, The Netherlands

Re: Using Joomla Editor in Custom Component !

Postby 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:
// parameters : areaname, content, hidden field, width, height, rows, cols
editorArea( 'editor1',  $row->introtext , 'introtext', '600', '400', '70', '15' ) ;
Kind Regards,
Peter Martin, Global Moderator - Joomla specialist, Nijmegen, Nederland
Co-founder of GDPR Tool

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

Re: Using Joomla Editor in Custom Component !

Postby 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

User avatar
Joomla! Ace
Joomla! Ace
Posts: 1198
Joined: Sat Feb 11, 2006 8:32 am
Location: Tilburg, Holland

Re: Using Joomla Editor in Custom Component !

Postby carsten888 » Wed Apr 02, 2008 2:40 pm
Admin-Help-Pages, Dynamic-Menu-Links, Admin-Menu-Manager, Access-Manager, Redirect-on-Login, Pages-and-Items, module Admin-Messages, module Logged-in-Users, plugin load module in article, plugin pure css tooltip and more...

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

Re: Using Joomla Editor in Custom Component !

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

Return to “WYSIWYG Editors - 1.0.x”

Who is online

Users browsing this forum: No registered users and 1 guest