public function htmlTextarea($name, $value = null, $htmlOptions = array(), $tinyMCETemplate = 'basic')
    {
        $r = Html::get()->mpfScriptFile('jquery.js') . Html::get()->mpfScriptFile('tinymce/tinymce.min.js') . Html::get()->mpfScriptFile('tinymce/jquery.tinymce.min.js');
        if (!isset($htmlOptions['id'])) {
            $htmlOptions['id'] = 'tinymce_' . uniqid();
        }
        $htmlOptions['class'] = (isset($htmlOptions['class']) ? $htmlOptions['class'] . ' ' : '') . 'input tinymce-textarea';
        $r .= $this->textarea($name, $value, $htmlOptions);
        $options = json_encode($this->tinyMCEOptionTemplates[$tinyMCETemplate]);
        $r .= Html::get()->script("$('#{$htmlOptions['id']}').tinymce($options)");
        return $r;
    }
public function htmlTextarea($name, $value = null, $htmlOptions = array(), $tinyMCETemplate = 'basic')
    {
        $r = Html::get()->mpfScriptFile('jquery.js') . Html::get()->mpfScriptFile('tinymce/tinymce.min.js') . Html::get()->mpfScriptFile('tinymce/jquery.tinymce.min.js');
        if (!isset($htmlOptions['id'])) {
            $htmlOptions['id'] = 'tinymce_' . uniqid();
        }
        $htmlOptions['class'] = (isset($htmlOptions['class']) ? $htmlOptions['class'] . ' ' : '') . 'input tinymce-textarea';
        $r .= $this->textarea($name, $value, $htmlOptions);
        $options = json_encode($this->tinyMCEOptionTemplates[$tinyMCETemplate]);
        $r .= Html::get()->script("$('#{$htmlOptions['id']}').tinymce($options)");
        return $r;
    }
public function htmlTextarea ( $ name , $ value = null , $ htmlOptions = array ( ) , $ tinyMCETemplate = 'basic' ) { $ r = Html :: get ( ) -> mpfScriptFile ( 'jquery.js' ) . Html :: get ( ) -> mpfScriptFile ( 'tinymce/tinymce.min.js' ) . Html :: get ( ) -> mpfScriptFile ( 'tinymce/jquery.tinymce.min.js' ) ; if ( ! isset ( $ htmlOptions [ 'id' ] ) ) { $ htmlOptions [ 'id' ] = 'tinymce_' . uniqid ( ) ; } $ htmlOptions [ 'class' ] = ( isset ( $ htmlOptions [ 'class' ] ) ? $ htmlOptions [ 'class' ] . ' ' : '' ) . 'input tinymce-textarea' ; $ r .= $ this -> textarea ( $ name , $ value , $ htmlOptions ) ; $ options = json_encode ( $ this -> tinyMCEOptionTemplates [ $ tinyMCETemplate ] ) ; $ r .= Html :: get ( ) -> script ( "$('#{$htmlOptions['id']}').tinymce($options)" ) ; return $ r ; }
Generates an HTML Textarea using TinyMCE
@param $name
@param null $value
@param array $htmlOptions
@param string $tinyMCETemplate
@return string
Generates an HTML Textarea using TinyMCE