protected function getInput()
	{
		// Initialize some field attributes.
		$rows = (int) $this->element['rows'];
		$cols = (int) $this->element['cols'];
		$height = ((string) $this->element['height']) ? (string) $this->element['height'] : '250';
		$width = ((string) $this->element['width']) ? (string) $this->element['width'] : '100%';
		$assetField = $this->element['asset_field'] ? (string) $this->element['asset_field'] : 'asset_id';
		$authorField = $this->element['created_by_field'] ? (string) $this->element['created_by_field'] : 'created_by';
		$asset = $this->form->getValue($assetField) ? $this->form->getValue($assetField) : (string) $this->element['asset_id'];

		// Build the buttons array.
		$buttons = (string) $this->element['buttons'];

		if ($buttons == 'true' || $buttons == 'yes' || $buttons == '1')
		{
			$buttons = true;
		}
		elseif ($buttons == 'false' || $buttons == 'no' || $buttons == '0')
		{
			$buttons = false;
		}
		else
		{
			$buttons = explode(',', $buttons);
		}

		$hide = ((string) $this->element['hide']) ? explode(',', (string) $this->element['hide']) : array();

		// Get an editor object.
		$editor = $this->getEditor();

		return $editor->display(
			$this->name, htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8'), $width, $height, $cols, $rows,
			$buttons ? (is_array($buttons) ? array_merge($buttons, $hide) : $hide) : false, $this->id, $asset,
			$this->form->getValue($authorField)
		);
	}
protected function getInput()
	{
		// Initialize some field attributes.
		$rows = (int) $this->element['rows'];
		$cols = (int) $this->element['cols'];
		$height = ((string) $this->element['height']) ? (string) $this->element['height'] : '250';
		$width = ((string) $this->element['width']) ? (string) $this->element['width'] : '100%';
		$assetField = $this->element['asset_field'] ? (string) $this->element['asset_field'] : 'asset_id';
		$authorField = $this->element['created_by_field'] ? (string) $this->element['created_by_field'] : 'created_by';
		$asset = $this->form->getValue($assetField) ? $this->form->getValue($assetField) : (string) $this->element['asset_id'];

		// Build the buttons array.
		$buttons = (string) $this->element['buttons'];

		if ($buttons == 'true' || $buttons == 'yes' || $buttons == '1')
		{
			$buttons = true;
		}
		elseif ($buttons == 'false' || $buttons == 'no' || $buttons == '0')
		{
			$buttons = false;
		}
		else
		{
			$buttons = explode(',', $buttons);
		}

		$hide = ((string) $this->element['hide']) ? explode(',', (string) $this->element['hide']) : array();

		// Get an editor object.
		$editor = $this->getEditor();

		return $editor->display(
			$this->name, htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8'), $width, $height, $cols, $rows,
			$buttons ? (is_array($buttons) ? array_merge($buttons, $hide) : $hide) : false, $this->id, $asset,
			$this->form->getValue($authorField)
		);
	}
protected function getInput ( ) { // Initialize some field attributes. $ rows = ( int ) $ this -> element [ 'rows' ] ; $ cols = ( int ) $ this -> element [ 'cols' ] ; $ height = ( ( string ) $ this -> element [ 'height' ] ) ? ( string ) $ this -> element [ 'height' ] : '250' ; $ width = ( ( string ) $ this -> element [ 'width' ] ) ? ( string ) $ this -> element [ 'width' ] : '100%' ; $ assetField = $ this -> element [ 'asset_field' ] ? ( string ) $ this -> element [ 'asset_field' ] : 'asset_id' ; $ authorField = $ this -> element [ 'created_by_field' ] ? ( string ) $ this -> element [ 'created_by_field' ] : 'created_by' ; $ asset = $ this -> form -> getValue ( $ assetField ) ? $ this -> form -> getValue ( $ assetField ) : ( string ) $ this -> element [ 'asset_id' ] ; // Build the buttons array. $ buttons = ( string ) $ this -> element [ 'buttons' ] ; if ( $ buttons == 'true' || $ buttons == 'yes' || $ buttons == '1' ) { $ buttons = true ; } elseif ( $ buttons == 'false' || $ buttons == 'no' || $ buttons == '0' ) { $ buttons = false ; } else { $ buttons = explode ( ',' , $ buttons ) ; } $ hide = ( ( string ) $ this -> element [ 'hide' ] ) ? explode ( ',' , ( string ) $ this -> element [ 'hide' ] ) : array ( ) ; // Get an editor object. $ editor = $ this -> getEditor ( ) ; return $ editor -> display ( $ this -> name , htmlspecialchars ( $ this -> value , ENT_COMPAT , 'UTF-8' ) , $ width , $ height , $ cols , $ rows , $ buttons ? ( is_array ( $ buttons ) ? array_merge ( $ buttons , $ hide ) : $ hide ) : false , $ this -> id , $ asset , $ this -> form -> getValue ( $ authorField ) ) ; }
Method to get the field input markup for the editor area

@return  string  The field input markup.
Method to get the field input markup for the editor area