title: How to add attribute name to JFactory::getEditor()
body: <p>I have a question about this method (JFactory::getEditor()):</p>
  
  <p>I want to implement a Editor in my component (front) and I've done this:</p>
  
  <pre><code>$editor =&amp; JFactory::getEditor();
  $params = array( 'smilies'=&gt; '0', 'style'  =&gt; '1', 'layer'  =&gt; '0', 'table'  =&gt; '0', 'clear_entities'=&gt;'0');
  echo $editor-&gt;display( 'desc', '', '400', '400', '20', '20', false, $params );
  </code></pre>
  
  <p>I copied this from the Joomla documentation: <a href="https://docs.joomla.org/JFactory/getEditor" rel="nofollow">https://docs.joomla.org/JFactory/getEditor</a></p>
  
  <p>But my question, how I can add the name attribute to pick it up on your controller when you click the submit form?</p>
  
  <p>Thanks in advance. </p>
  
  <p><strong>UPDATE:</strong> </p>
  
  <p>In the OnDisplay () method's first parameter is the name of atribute name, I leave as eventually would, if anyone can serve data collection.</p>
  
  <pre><code>$editor =&amp; JFactory::getEditor();
  $params = array( 'smilies'=&gt; '0', 'style'  =&gt; '1', 'layer'  =&gt; '0', 'table'  =&gt; '0', 'clear_entities'=&gt;'0');
  echo $editor-&gt;display( '**ATTRIBUTE_NAME**', '', '400', '400', '20', '20', false, $params );
  </code></pre>
  
  <p>In controllers:</p>
  
  <pre><code>$data = JFactory::getApplication()-&gt;input-&gt;get('**ATTRIBUTE_NAME**', '');
  </code></pre>
  
  <p>If you want more information about the parameters, you can see Joomla file:  /plugins/editors/tinymce.php.</p>