lib/widget/sfWidgetFormTextareaDmCkEditor.php
/**
   * @param  string $name        The element name
   * @param  string $value       The value displayed in this widget
   * @param  array  $attributes  An array of HTML attributes to be merged with the default HTML attributes
   * @param  array  $errors      An array of errors for the field
   *
   * @return string An HTML tag string
   *
   * @see sfWidgetForm
   */
@param  string $name        The element name
@param  string $value       The value displayed in this widget
@param  array  $attributes  An array of HTML attributes to be merged with the default HTML attributes
@param  array  $errors      An array of errors for the field

@return string An HTML tag string


@param string $name The element name @param string $value The value displayed in this widget @param array $attributes An array of HTML attributes to be merged with the default HTML attributes @param array $errors An array of errors for the field @return string An HTML tag string
public function render($name, $value = null, $attributes = array(), $errors = array())
  {
    $config = array_merge($this->getDefaultConfig(), (array) $this->getOption('config'));
    $attributes['class'] = dmArray::toHtmlCssClasses(array(
      dmArray::get($attributes, 'class'),
      'dm_ckeditor',
      json_encode($config)
    ));
    if($ckEditor = $this->getOption('ckeditor'))
    {
      $value = $ckEditor->render($value);
    }
    return parent::render($name, $value, $attributes, $errors);
  }
public function render ( $ name , $ value = null , $ attributes = array ( ) , $ errors = array ( ) ) { $ config = array_merge ( $ this -> getDefaultConfig ( ) , ( array ) $ this -> getOption ( 'config' ) ) ; $ attributes [ 'class' ] = dmArray :: toHtmlCssClasses ( array ( dmArray :: get ( $ attributes , 'class' ) , 'dm_ckeditor' , json_encode ( $ config ) ) ) ; if ( $ ckEditor = $ this -> getOption ( 'ckeditor' ) ) { $ value = $ ckEditor -> render ( $ value ) ; } return parent :: render ( $ name , $ value , $ attributes , $ errors ) ; }
@param  string $name        The element name
 @param  string $value       The value displayed in this widget
 @param  array  $attributes  An array of HTML attributes to be merged with the default HTML attributes
 @param  array  $errors      An array of errors for the field
@param string $name The element name @param string $value The value displayed in this widget @param array $attributes An array of HTML attributes to be merged with the default HTML attributes @param array $errors An array of errors for the field