code/libraries/joomlatools/component/koowa/template/helper/editor.php
public function display($config = array())
    {
        $config = new KObjectConfigJson($config);
        $config->append(array(
            'editor'    => null,
            'name'      => 'description',
            'value'     => '',
            'width'     => '100%',
            'height'    => '500',
            'cols'      => '75',
            'rows'      => '20',
            'buttons'   => true,
            'options'   => array()
        ));

        // Add editor styles and scripts in JDocument to page when rendering
        $this->getIdentifier('com:koowa.view.page.html')->getConfig()->append(['template_filters' => ['document']]);

        $editor  = JFactory::getEditor($config->editor);
        $options = KObjectConfig::unbox($config->options);

        $result = $editor->display($config->name, $config->value, $config->width, $config->height, $config->cols, $config->rows, KObjectConfig::unbox($config->buttons), $config->name, null, null, $options);
        
        // Some editors like CKEditor return inline JS. 
        $result = str_replace('<script', '<script data-inline', $result);

        return $result;
    }
public function display($config = array())
    {
        $config = new KObjectConfigJson($config);
        $config->append(array(
            'editor'    => null,
            'name'      => 'description',
            'value'     => '',
            'width'     => '100%',
            'height'    => '500',
            'cols'      => '75',
            'rows'      => '20',
            'buttons'   => true,
            'options'   => array()
        ));

        // Add editor styles and scripts in JDocument to page when rendering
        $this->getIdentifier('com:koowa.view.page.html')->getConfig()->append(['template_filters' => ['document']]);

        $editor  = JFactory::getEditor($config->editor);
        $options = KObjectConfig::unbox($config->options);

        $result = $editor->display($config->name, $config->value, $config->width, $config->height, $config->cols, $config->rows, KObjectConfig::unbox($config->buttons), $config->name, null, null, $options);
        
        // Some editors like CKEditor return inline JS. 
        $result = str_replace('<script', '<script data-inline', $result);

        return $result;
    }
public function display ( $ config = array ( ) ) { $ config = new KObjectConfigJson ( $ config ) ; $ config -> append ( array ( 'editor' => null , 'name' => 'description' , 'value' => '' , 'width' => '100%' , 'height' => '500' , 'cols' => '75' , 'rows' => '20' , 'buttons' => true , 'options' => array ( ) ) ) ; // Add editor styles and scripts in JDocument to page when rendering $ this -> getIdentifier ( 'com:koowa.view.page.html' ) -> getConfig ( ) -> append ( [ 'template_filters' => [ 'document' ] ] ) ; $ editor = JFactory :: getEditor ( $ config -> editor ) ; $ options = KObjectConfig :: unbox ( $ config -> options ) ; $ result = $ editor -> display ( $ config -> name , $ config -> value , $ config -> width , $ config -> height , $ config -> cols , $ config -> rows , KObjectConfig :: unbox ( $ config -> buttons ) , $ config -> name , null , null , $ options ) ; // Some editors like CKEditor return inline JS.  $ result = str_replace ( '<script' , '<script data-inline' , $ result ) ; return $ result ; }
Generates an HTML editor

@param   array   $config An optional array with configuration options
@return  string  Html
Generates an HTML editor