From 9d4cd4f2db4d800164b9c3051e4bfdee21acb27f Mon Sep 17 00:00:00 2001 From: Emil <7682404+em411@users.noreply.github.com> Date: Tue, 23 Jan 2024 16:35:55 +0100 Subject: [PATCH] Fix twig paths for Symfony 5.3 compatibility (#233) Twig on Symfony 5.3 can't find `ckekditor.html.twig` with old paths. --- docs/usage/append-javascript.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage/append-javascript.rst b/docs/usage/append-javascript.rst index 5e68ebcd..abd075f5 100644 --- a/docs/usage/append-javascript.rst +++ b/docs/usage/append-javascript.rst @@ -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;