Prado\Web\UI\WebControls\THtmlArea::getEditorOptions PHP Method

getEditorOptions() protected method

Default editor options gives basic tool bar only.
protected getEditorOptions ( ) : array
return array editor initialization options.
    protected function getEditorOptions()
    {
        $options['mode'] = 'exact';
        $options['elements'] = $this->getClientID();
        $options['language'] = $this->getLanguageSuffix($this->getCulture());
        $options['theme'] = 'advanced';
        //make it basic advanced to fit into 1 line of buttons.
        //$options['theme_advanced_buttons1'] = 'bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright, justifyfull,separator,bullist,numlist,separator,undo,redo,separator,link,unlink,separator,charmap,separator,code,help';
        //$options['theme_advanced_buttons2'] = ' ';
        $options['theme_advanced_buttons1'] = 'formatselect,fontselect,fontsizeselect,separator,bold,italic,underline,strikethrough,sub,sup';
        $options['theme_advanced_buttons2'] = 'justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,outdent,indent,separator,forecolor,backcolor,separator,hr,link,unlink,image,charmap,separator,removeformat,code,help';
        $options['theme_advanced_buttons3'] = '';
        $options['theme_advanced_toolbar_location'] = 'top';
        $options['theme_advanced_toolbar_align'] = 'left';
        $options['theme_advanced_path_location'] = 'bottom';
        $options['extended_valid_elements'] = 'a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]';
        if ($this->getReadOnly()) {
            $options['readonly'] = true;
        }
        $options = array_merge($options, $this->parseEditorOptions($this->getOptions()));
        return $options;
    }