Skip to content

Commit 76f7b71

Browse files
committed
Fix ckeditor removing empty <i> tags
1 parent 8dce423 commit 76f7b71

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% extends 'FOSCKEditorBundle:Form:ckeditor_widget.html.twig' %}
2+
3+
{% block ckeditor_widget_extra %}
4+
CKEDITOR.dtd.$removeEmpty['i'] = false;
5+
{% endblock %}

tests/Application/config/packages/twig.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ twig:
44
strict_variables: '%kernel.debug%'
55
form_themes:
66
- '@FOSCKEditor/Form/ckeditor_widget.html.twig'
7+
- '@BitBagSyliusCmsPlugin/Form/ckeditor_widget.html.twig'
78

89
services:
910
_defaults:

0 commit comments

Comments
 (0)