Skip to content

Commit 3c49bc0

Browse files
committed
Merge pull request #105 from symfony-cmf/fix_non_root_bugs
[WIP] Fixed bugs when Symfony is not in the root
2 parents cdd9c03 + be0be16 commit 3c49bc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getConfigTreeBuilder()
4747
->end()
4848
->scalarNode('stanbol_url')->defaultValue('http://dev.iks-project.eu:8081')->end()
4949
->booleanNode('fixed_toolbar')->defaultTrue()->end()
50-
->scalarNode('editor_base_path')->defaultValue('/bundles/cmfcreate/vendor/ckeditor/')->end()
50+
->scalarNode('editor_base_path')->defaultValue('bundles/cmfcreate/vendor/ckeditor/')->end()
5151
->arrayNode('plain_text_types')
5252
->useAttributeAsKey('name')
5353
->prototype('scalar')->end()

Resources/views/includejsfiles-ckeditor.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% include "CmfCreateBundle::includejsfiles-create.html.twig" %}
22

3-
<script>window.CKEDITOR_BASEPATH = '{{ cmfCreateEditorBasePath }}';</script>
3+
<script>window.CKEDITOR_BASEPATH = '{{ asset(cmfCreateEditorBasePath) }}';</script>
44
{% javascripts output="/js/ckeditor.js"
55
'@CmfCreateBundle/Resources/public/vendor/ckeditor/ckeditor.js'
66
'@CmfCreateBundle/Resources/public/js/init-create-ckeditor.js'

0 commit comments

Comments
 (0)