mirror of
https://github.com/code-rhapsodie/FOSCKEditorBundle.git
synced 2026-03-23 22:32:19 +01:00
Fix twig paths for Symfony 5.3 compatibility (#233)
Twig on Symfony 5.3 can't find `ckekditor.html.twig` with old paths.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user