<commit_before><?php
class Smallunch_lib_View_Helper_Rte extends Zend_View_Helper_Abstract
{
  function rte($name, $value = null, $attr = array())
  {
  	#require_once 'Zend/View/Helper/FormTextarea.php';
  	#$textarea = new Zend_View_Helper_FormTextarea();
    $baseUrl = str_replace('/index.php', '', str_replace('/dev.php', '', Zend_Controller_Front::getInstance()->getBaseUrl()));
    
    $headLink = new Zend_View_Helper_HeadLink();
    $headScript = new Zend_View_Helper_HeadScript();
    $headScript->headScript()->appendFile($baseUrl.'/js/ckeditor/ckeditor.js');
    
    $placeholder = new Zend_View_Helper_Placeholder();
    $placeholder->placeholder('jQuery')->captureStart();
    
	  echo "CKEDITOR.replace( '".$name."' );";
	  $placeholder->placeholder('jQuery')->captureEnd();
	  
	  return $this->view->formTextarea($name, $value);
  }
}<commit_msg>Added Comments Code cleanup Now passing $attr to formTextarea<commit_after><?php
class Smallunch_lib_View_Helper_Rte extends Zend_View_Helper_Abstract
{
  /**
   * Returns CKEditor form field
   * @param string $name  Name used for generated field
   * @param string $value Content for CKEditor
   * @param array $attr Attributes for textarea
   */
  function rte($name, $value = null, $attr = array())
  {
    $baseUrl = str_replace('/index.php', '', str_replace('/dev.php', '', Zend_Controller_Front::getInstance()->getBaseUrl()));
    
    $headLink = new Zend_View_Helper_HeadLink();
    $headScript = new Zend_View_Helper_HeadScript();
    $headScript->headScript()->appendFile($baseUrl.'/js/ckeditor/ckeditor.js');
    
    $placeholder = new Zend_View_Helper_Placeholder();
    $placeholder->placeholder('jQuery')->captureStart();
	  echo "CKEDITOR.replace( '".$name."' );";
	  $placeholder->placeholder('jQuery')->captureEnd();
	  
	  return $this->view->formTextarea($name, $value, $attr);
  }
}
{'fraction_non_alphanumeric': 0.15944355270197966, 'fraction_numerical': 0.0, 'mean_word_length': 4.862068965517241, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6189707', 'n_tokens_mistral': 595, 'n_tokens_neox': 573, 'n_words': 104}