src/Forms/HTMLEditor/TinyMCEConfig.php
public function getTinyMCEResource()
    {
        $configDir = static::config()->get('base_dir');
        if ($configDir) {
            return ModuleResourceLoader::singleton()->resolveResource($configDir);
        }

        throw new Exception(sprintf(
            'If the silverstripe/admin module is not installed you must set the TinyMCE path in %s.base_dir',
            __CLASS__
        ));
    }
public function getTinyMCEResource()
    {
        $configDir = static::config()->get('base_dir');
        if ($configDir) {
            return ModuleResourceLoader::singleton()->resolveResource($configDir);
        }

        throw new Exception(sprintf(
            'If the silverstripe/admin module is not installed you must set the TinyMCE path in %s.base_dir',
            __CLASS__
        ));
    }
public function getTinyMCEResource ( ) { $ configDir = static :: config ( ) -> get ( 'base_dir' ) ; if ( $ configDir ) { return ModuleResourceLoader :: singleton ( ) -> resolveResource ( $ configDir ) ; } throw new Exception ( sprintf ( 'If the silverstripe/admin module is not installed you must set the TinyMCE path in %s.base_dir' , __CLASS__ ) ) ; }
Get resource root for TinyMCE, either as a string or ModuleResource instance
Path will be relative to BASE_PATH if string.

@return ModuleResource|string
@throws Exception
Get resource root for TinyMCE either as a string or ModuleResource instance Path will be relative to BASE_PATH if string .