Skip to content

Commit

Permalink
Merge pull request #50 from dbu/document-compression
Browse files Browse the repository at this point in the history
document new config options, fix ckeditor compressed template
  • Loading branch information
helios-ag committed Nov 13, 2013
2 parents 3854589 + 1f703b9 commit 613f11d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ public function getConfigTreeBuilder()
$rootNode
->children()
->scalarNode('locale')->defaultNull()->end()
->booleanNode('showhidden')->defaultValue(false)->end()
->booleanNode('showhidden')->defaultFalse()->end()
->scalarNode('editor')->defaultValue('simple')->end()
->booleanNode('compression')->defaultValue(false)->end()
->booleanNode('fullscreen')->defaultValue(true)->end()
->booleanNode('include_assets')->defaultValue(true)->end()
->booleanNode('compression')->defaultFalse()->end()
->booleanNode('fullscreen')->defaultTrue()->end()
->booleanNode('include_assets')->defaultTrue()->end()
->scalarNode('tinymce_popup_path')->defaultValue('')->end()
->end()
;
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ fm_elfinder:
editor: ckeditor # other choices are tinymce or simple
showhidden: false # defaults to false
fullscreen: true # defaults true, applies to simple and ckeditor editors
include_assets: true # disable if you want to handle loading of the javascript and css assets yourself
compression: false # enable if you configured the uglifycss and uglifyjs2 assetic filters and want compression
connector:
debug: false # defaults to false
roots: # at least one root must be defined
Expand Down Expand Up @@ -285,5 +287,7 @@ Manual integration guide can be found [here](/INTEGRATION_GUIDE.md)

##Changelog

1.x
Switched from YUI compressor to Uglify
### 1.4

* Made compressing assets optional. When compressing is active, it now uses
uglify.js instead of YUI compressor.
7 changes: 2 additions & 5 deletions Resources/views/Elfinder/compressed/ckeditor.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<head>
<meta charset="utf-8">
{% stylesheets output='assetic/css/compiled/fmelfinder/main.css'
'bundles/fmelfinder/css/*' filter='cssrewrite,?yui_css' %}
'bundles/fmelfinder/css/*' filter='cssrewrite,?uglifycss' %}
<link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}
</head>
<body>
{% javascripts output='assetic/js/compiled/fmelfinder/main.js' filter='?yui_js'
{% javascripts output='assetic/js/compiled/fmelfinder/main.js' filter='?uglifyjs2'
'@FMElfinderBundle/Resources/public/js/jquery/jquery-1.8.0.min.js'
'@FMElfinderBundle/Resources/public/js/jquery/jquery-ui-1.8.23.custom.min.js'
'@FMElfinderBundle/Resources/public/js/elfinder.min.js'
Expand Down Expand Up @@ -53,6 +53,3 @@
<div id="elfinder"></div>
</body>
</html>



0 comments on commit 613f11d

Please sign in to comment.