protected function optionsToCKEditorConfig(Options $options)
    {
        $config = array();
        foreach ($options->toArray() as $key => $value) {
            if (!array_key_exists($key, static::$optionsToConfigMap)) {
                continue;
            }
            
            if (in_array($key, static::$optionsToPrependBasePath)) {
                if (is_array($value)) {
                    foreach ($value as &$deepValue) {
                        $deepValue = $this->view->basePath($deepValue);
                    }
                } else {
                    $value = $this->view->basePath($value);
                }
            }
            
            $config[static::$optionsToConfigMap[$key]] = $value;
        }
        
        return $config;
    }