Skip to content

Commit

Permalink
clean up config
Browse files Browse the repository at this point in the history
  • Loading branch information
trsteel88 committed Mar 12, 2014
1 parent 1943320 commit ffd8770
Showing 1 changed file with 0 additions and 60 deletions.
60 changes: 0 additions & 60 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,10 @@ public function getConfigTreeBuilder()
->scalarNode('class')
->defaultValue('Trsteel\CkeditorBundle\Form\Type\CkeditorType')
->end()
->end()
->children()
->variableNode('transformers')
->defaultValue(array('html_purifier'))
->info("Default data transformers for the submitted html.")
->end()
->end()
->children()
->variableNode('toolbar')
->defaultValue(array(
'document', 'clipboard', 'editing', '/',
Expand All @@ -41,54 +37,38 @@ public function getConfigTreeBuilder()
))
->info("The default toolbar displayed on the editor.")
->end()
->end()
->children()
->variableNode('toolbar_groups')
->defaultValue(array())
->info("Groups of icons in the editor.")
->end()
->end()
->children()
->booleanNode('startup_outline_blocks')
->defaultTrue()
->info("Whether to automaticaly enable the \"show block\" command when the editor loads.")
->end()
->end()
->children()
->scalarNode('ui_color')
->defaultNull()
->info("The base user interface color to be used by the editor. Must be a hex.")
->example("#AADC6E")
->end()
->end()
->children()
->scalarNode('width')
->defaultNull()
->info("The editor UI outer width. Must be an integer or percentage.")
->example("850")
->end()
->end()
->children()
->scalarNode('height')
->defaultNull()
->info("The height of the editing area (that includes the editor content).")
->example("600")
->end()
->end()
->children()
->scalarNode('force_paste_as_plaintext')
->defaultNull()
->info("Force paste content as plain text.")
->end()
->end()
->children()
->scalarNode('language')
->defaultNull()
->info("The user interface language localization to use.")
->example("en-au")
->end()
->end()
->children()
->arrayNode('filebrowser_browse_url')
->addDefaultsIfNotSet()
->beforeNormalization()
Expand All @@ -102,8 +82,6 @@ public function getConfigTreeBuilder()
->end()
->info("The location of an external file browser that should be launched when the Browse Server button is pressed.")
->end()
->end()
->children()
->arrayNode('filebrowser_upload_url')
->addDefaultsIfNotSet()
->beforeNormalization()
Expand All @@ -117,8 +95,6 @@ public function getConfigTreeBuilder()
->end()
->info("The location of the script that handles file uploads.")
->end()
->end()
->children()
->arrayNode('filebrowser_image_browse_url')
->addDefaultsIfNotSet()
->beforeNormalization()
Expand All @@ -132,8 +108,6 @@ public function getConfigTreeBuilder()
->end()
->info("The location of an external file browser that should be launched when the Browse Server button is pressed in the Image dialog window.")
->end()
->end()
->children()
->arrayNode('filebrowser_image_upload_url')
->addDefaultsIfNotSet()
->beforeNormalization()
Expand All @@ -147,8 +121,6 @@ public function getConfigTreeBuilder()
->end()
->info("The location of the script that handles file uploads in the Image dialog window.")
->end()
->end()
->children()
->arrayNode('filebrowser_flash_browse_url')
->addDefaultsIfNotSet()
->beforeNormalization()
Expand All @@ -162,8 +134,6 @@ public function getConfigTreeBuilder()
->end()
->info("The location of an external file browser that should be launched when the Browse Server button is pressed in the Flash dialog window.")
->end()
->end()
->children()
->arrayNode('filebrowser_flash_upload_url')
->addDefaultsIfNotSet()
->beforeNormalization()
Expand All @@ -177,39 +147,27 @@ public function getConfigTreeBuilder()
->end()
->info("The location of the script that handles file uploads in the Flash dialog window.")
->end()
->end()
->children()
->scalarNode('skin')
->defaultNull()
->info("The skin to load. It may be the name of the skin folder inside the editor installation path, or the name and the path separated by a comma.")
->end()
->end()
->children()
->variableNode('format_tags')
->defaultValue(array())
->info("An array of style names (by default tags) representing the style definition for each entry to be displayed in the Format combo in the toolbar.")
->example('[\'p\',\'h2\',\'h3\',\'pre\']')
->end()
->end()
->children()
->scalarNode('base_path')
->defaultValue('/bundles/trsteelckeditor/')
->info("The base URL path used to load ckeditor files from.")
->end()
->end()
->children()
->scalarNode('base_href')
->defaultNull()
->info("The base href URL used to resolve relative and absolute URLs in the editor content.")
->end()
->end()
->children()
->scalarNode('body_class')
->defaultNull()
->info("Sets the class attribute to be used on the body element of the editing area.")
->end()
->end()
->children()
->arrayNode('contents_css')
->beforeNormalization()
->ifString()
Expand All @@ -218,44 +176,30 @@ public function getConfigTreeBuilder()
->prototype('scalar')->end()
->info("The CSS file(s) to be used to apply style to editor contents.")
->end()
->end()
->children()
->scalarNode('basic_entities')
->defaultNull()
->info("Whether to escape basic HTML entities in the document.")
->end()
->end()
->children()
->scalarNode('entities')
->defaultNull()
->info("Whether to use HTML entities in the output.")
->end()
->end()
->children()
->scalarNode('entities_latin')
->defaultNull()
->info("Whether to convert some Latin characters (Latin alphabet No. 1, ISO 8859-1) to HTML entities.")
->end()
->end()
->children()
->scalarNode('startup_mode')
->defaultNull()
->info("The mode to load at the editor startup. It depends on the plugins loaded. By default, the `wysiwyg` and `source` modes are available. ")
->end()
->end()
->children()
->scalarNode('enter_mode')
->defaultNull()
->info("Sets the behavior of the Enter key. By default the `ENTER_P`, `ENTER_BR` and `ENTER_DIV` modes available.")
->end()
->end()
->children()
->scalarNode('custom_config')
->defaultNull()
->info("The path of the custom config.js to use for the editor setup.")
->end()
->end()
->children()
->arrayNode('external_plugins')
->useAttributeAsKey(true)
->prototype('array')
Expand All @@ -269,14 +213,10 @@ public function getConfigTreeBuilder()
->end()
->end()
->end()
->end()
->children()
->variableNode('templates_files')
->defaultValue(array())
->info("The list of templates definition files to load.")
->end()
->end()
->children()
->scalarNode('extra_allowed_content')
->defaultNull()
->info("This option makes it possible to set additional allowed content rules for CKEDITOR.editor.filter.")
Expand Down

0 comments on commit ffd8770

Please sign in to comment.