protected function addTinyMCEParameterNode()
    {
        $builder = new TreeBuilder();
        $node = $builder->root('tinymce');

        $exclude_files = array('bower.json', 'changelog.txt', 'composer.json', 'license.txt', 'package.json', 'readme.md');

        $defaults = array(
            'tinymce_dir' => '%kernel.root_dir%/../vendor/tinymce/tinymce',
            'js' => 'tinymce.min.js',
            'config' => array(
                'selector' => '.tinymce-content',
            ),
            'customize' => array(
                'dest_dir' => '%kernel.root_dir%/../web/js/tinymce',
                'base_url' => '/js/tinymce',
                'exclude_files' => $exclude_files,
            ),
        );

        $node
            ->treatTrueLike($defaults)
            ->treatNullLike($defaults)
            ->treatFalseLike(array(
                'tinymce_dir' => false,
            ))
            ->children()
                ->scalarNode('tinymce_dir')
                    ->cannotBeEmpty()
                    ->defaultValue('%kernel.root_dir%/../vendor/tinymce/tinymce')
                ->end()
                ->scalarNode('js')
                    ->CannotBeEmpty()
                    ->defaultValue('tinymce.min.js')
                ->end()
                ->arrayNode('config')
                    ->addDefaultsIfNotSet()
                    ->children()
                        ->scalarNode('selector')
                            ->cannotBeEmpty()
                            ->defaultValue('.tinymce-content')
                        ->end()
                    ->end()
                ->end()
                ->arrayNode('customize')
                    ->addDefaultsIfNotSet()
                   ->children()
                       ->scalarNode('dest_dir')
                           ->cannotBeEmpty()
                           ->defaultValue('%kernel.root_dir%/../web/js/tinymce')
                       ->end()
                       ->scalarNode('base_url')
                           ->cannotBeEmpty()
                           ->defaultValue('/js/tinymce')
                       ->end()
                       ->arrayNode('exclude_files')
                           ->fixXmlConfig('exclude_files')
                           ->prototype('scalar')->end()
                           ->defaultValue($exclude_files)
                       ->end()
                   ->end()
               ->end()
            ->end()
        ;

        return $node;
    }