Skip to content

Commit

Permalink
always show a baseHref
Browse files Browse the repository at this point in the history
  • Loading branch information
trsteel88 committed Feb 12, 2014
1 parent 2e8d373 commit 63e1c0f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Resources/views/Form/ckeditor_widget.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@
{% if format_tags|length > 0 %}
format_tags: '{{ format_tags | join(';') | raw }}',
{% endif %}
{% if base_href is not null %}
baseHref: '{{ base_href }}',
{% endif %}
{% if body_class is not null %}
bodyClass: '{{ body_class }}',
{% endif %}
Expand Down Expand Up @@ -120,7 +117,8 @@
{% if custom_config %}
customConfig: '{{ asset(custom_config) }}',
{% endif %}
toolbar: {{ toolbar | json_encode | raw }}
toolbar: {{ toolbar | json_encode | raw }},
baseHref: '{{ base_href ? base_href : app.request.schemeAndHttpHost ~ app.request.baseUrl ~ '/' }}'
};
CKEDITOR.replace("{{ id }}", trsteelConfig);
Expand Down

0 comments on commit 63e1c0f

Please sign in to comment.