コード例 #1
0
 public function __construct($options = array(), $attributes = array())
 {
     parent::__construct($options, $attributes);
     $this->tinyMCEConfigs = array_merge($this->tinyMCEConfigs, $this->getOption('config'));
     if (!isset($this->tinyMCEConfigs['language']) && sfContext::hasInstance()) {
         $lang = explode('_', sfContext::getInstance()->getUser()->getCulture());
         $this->tinyMCEConfigs['language'] = $lang[0];
     }
 }
コード例 #2
0
 public function __construct($options = array(), $attributes = array())
 {
     $this->addOption('filebrowser', null);
     parent::__construct($options, $attributes);
 }
コード例 #3
0
 public function __construct($options = array(), $attributes = array())
 {
     $this->addOption('max_size', '50');
     parent::__construct($options, $attributes);
 }