src/Security/Member.php
public function getHtmlEditorConfigForCMS()
    {
        $currentName = '';
        $currentPriority = 0;

        foreach ($this->Groups() as $group) {
            $configName = $group->HtmlEditorConfig;
            if ($configName) {
                $config = HTMLEditorConfig::get($group->HtmlEditorConfig);
                if ($config && $config->getOption('priority') > $currentPriority) {
                    $currentName = $configName;
                    $currentPriority = $config->getOption('priority');
                }
            }
        }

        // If can't find a suitable editor, just default to cms
        return $currentName ? $currentName : 'cms';
    }
public function getHtmlEditorConfigForCMS()
    {
        $currentName = '';
        $currentPriority = 0;

        foreach ($this->Groups() as $group) {
            $configName = $group->HtmlEditorConfig;
            if ($configName) {
                $config = HTMLEditorConfig::get($group->HtmlEditorConfig);
                if ($config && $config->getOption('priority') > $currentPriority) {
                    $currentName = $configName;
                    $currentPriority = $config->getOption('priority');
                }
            }
        }

        // If can't find a suitable editor, just default to cms
        return $currentName ? $currentName : 'cms';
    }
public function getHtmlEditorConfigForCMS ( ) { $ currentName = '' ; $ currentPriority = 0 ; foreach ( $ this -> Groups ( ) as $ group ) { $ configName = $ group -> HtmlEditorConfig ; if ( $ configName ) { $ config = HTMLEditorConfig :: get ( $ group -> HtmlEditorConfig ) ; if ( $ config && $ config -> getOption ( 'priority' ) > $ currentPriority ) { $ currentName = $ configName ; $ currentPriority = $ config -> getOption ( 'priority' ) ; } } } // If can't find a suitable editor, just default to cms return $ currentName ? $ currentName : 'cms' ; }
Get the HtmlEditorConfig for this user to be used in the CMS.
This is set by the group. If multiple configurations are set,
the one with the highest priority wins.

@return string
Get the HtmlEditorConfig for this user to be used in the CMS . This is set by the group . If multiple configurations are set the one with the highest priority wins .