Skip to content

Commit

Permalink
Fix twig paths for Symfony 5.3 compatibility (#233)
Browse files Browse the repository at this point in the history
Twig on Symfony 5.3 can't find `ckekditor.html.twig` with old paths.
  • Loading branch information
em411 authored Jan 23, 2024
1 parent 55745f0 commit 9d4cd4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage/append-javascript.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ we will configure CKEditor to not remove empty span via the DTD.
Twig Template
-------------

The default Twig template is ``FOSCKEditorBundle:Form:ckeditor_widget.html.twig``.
The default Twig template is ``"@FOSCKEditor/Form/ckeditor_widget.html.twig"``.
This one has some blocks you can override according to your needs.

.. code-block:: twig
{# app/Resources/views/Form/ckeditor_widget.html.twig #}
{% extends 'FOSCKEditorBundle:Form:ckeditor_widget.html.twig' %}
{% extends '@FOSCKEditor/Form/ckeditor_widget.html.twig' %}
{% block ckeditor_widget_extra %}
CKEDITOR.dtd.$removeEmpty['span'] = false;
Expand Down

0 comments on commit 9d4cd4f

Please sign in to comment.