13                 return $this->cfg->value;
    16         public function setValue($value, $refill=
false) {
    17                 $this->cfg->set(
'value', $value);
    21                 if ($this->cfg->mode == 
'view')
    24                 $options = $this->tinyMce;
    26                 if (is_array($this->cfg->tinyBrowser) && $this->cfg->getInArray(
'tinyBrowser', 
'active')) {
    27                         $tinyBrowser = $this->cfg->tinyBrowser;
    28                         $options[
'file_browser_callback'] = 
'function(field_name, url, type, win) {    29                                 tinyMCE.activeEditor.windowManager.open({    30                                         file : "'.$tinyBrowser[
'url'].
'?'.
session::getInstance()->getSessIdForce().
'='.urlencode(session_id()).
'&type=" + type'.($tinyBrowser[
'subdir'] ? 
'+"&subdir='.$tinyBrowser[
'subdir'].
'"' : 
'').
',    31                                         title : "'.$tinyBrowser[
'title'].
'",    32                                         width : '.$tinyBrowser[
'width'].
',    33                                         height : '.$tinyBrowser[
'height'].
',    36                                         inline : "yes",  // This parameter only has an effect if you use the inlinepopups plugin!    44                 } 
else if (is_array($this->cfg->nyroBrowser) && $this->cfg->getInArray(
'nyroBrowser', 
'active')) {
    45                         $nyroBrowser = $this->cfg->nyroBrowser;
    46                         $options[
'file_browser_callback'] = 
'function(field_name, url, type, win) {    47                                 tinyMCE.activeEditor.windowManager.open({    48                                         file : "'.$nyroBrowser[
'url'].
'?'.
session::getInstance()->getSessIdForce().
'='.urlencode(session_id()).
'&type="+type+"&config='.$nyroBrowser[
'config'].
'&",    49                                         title : "'.$nyroBrowser[
'title'].
'",    50                                         width : '.$nyroBrowser[
'width'].
',    51                                         height : '.$nyroBrowser[
'height'].
',    54                                         inline : "yes",  // This parameter only has an effect if you use the inlinepopups plugin!    64                 if (array_key_exists(
'content_css', $options) && $options[
'content_css']) {
    65                         $contentCss = $options[
'content_css'];
    66                         $options[
'setup'] = 
'function(ed) {ed.onInit.add(function(ed) {setTimeout(function() {ed.dom.add(ed.dom.select("head"), "link", {rel : "stylesheet", href : "'.$contentCss.
'"});}, 5);});}';
    68                 unset($options[
'content_css']);
    71                 $resp->addJs(
'jquery.tinymce');
    72                 $resp->blockjQuery(
'$("#'.$this->
id.
'").tinymce('.
utils::jsEncode($options).
');');
    75                         array_merge($this->html, array(
 
static htmlOut($val, $key=false)
 
static htmlTag($tag, array $attributes, $content=null)
 
static getInstance(array $cfg=array())
 
setValue($value, $refill=false)