The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Sep 17, 2012 10:31 pm 
Joomla! Intern
Joomla! Intern

Joined: Tue Apr 20, 2010 9:29 pm
Posts: 53
Hi there,

I have a component that uses a "hardcoded" editor wihout any WYSIWYG features. The text area is just this:
Code:
                  <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:
Code:
                  <?php
                     $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:
Code:
   $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,
V.


Top
 Profile  
 
PostPosted: Thu Sep 20, 2012 7:25 pm 
Joomla! Intern
Joomla! Intern

Joined: Tue Apr 20, 2010 9:29 pm
Posts: 53
Just a friendly "bump"......there must be a way to do this???


Top
 Profile  
 
PostPosted: Fri Sep 21, 2012 10:33 pm 
Joomla! Intern
Joomla! Intern

Joined: Tue Apr 20, 2010 9:29 pm
Posts: 53
Actually this component uses a jQuery function with ajax to get the content/text from the editor. When I use the WYSIWYG editor, though, it can't find the editor object:(

Any ideas?


Top
 Profile  
 
PostPosted: Fri Sep 21, 2012 11:34 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Mon Mar 20, 2006 1:56 am
Posts: 11629
Location: The Girly Side of Joomla in Sussex
....and the component is??
... and the developer said???

_________________
HU2HY- Poor questions = Poor answer
Un requested Help PM's will be added to the foe list and possibly just deleted
{Community.Connect Administrator }{ Showcase & Security Moderator}


Top
 Profile  
 
PostPosted: Mon Sep 24, 2012 11:24 pm 
Joomla! Intern
Joomla! Intern

Joined: Tue Apr 20, 2010 9:29 pm
Posts: 53
The component is QContacts, and I've emailed the developer, but haven't heard anything yet.

Thanks,
V.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 



Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group