I have a component that uses a "hardcoded" editor wihout any WYSIWYG features. The text area is just this:
<textarea cols='60' rows='10' name='body' id='body'></textarea>
Basically what I've done is add a WYSIWYG editor to the component, but I need to be able to retrieve the content or text that was entered using the editor and after the user hits submit.
This is the code I used to add the editor:
$editor =& JFactory::getEditor();
echo $editor->display('content', $this->content, '550', '400', '60', '20', false);
but I can't seem to be able to retrieve the data that was entered. The code I tried using is shown below:
$editor = & JFactory::getEditor() ;
$body = $editor->getContent('text');
The value I get back using the code above is "WFEditor.getContent('text'); "
Any ideas would be greatly appreciated!
Thanks in advance,