Skip to content

Commit 45646f5

Browse files
authored
[doc] installation with FOSCKEditorBundle 2.0
1 parent 9508d64 commit 45646f5

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

doc/installation.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ Install WYSIWYG editor ([FOS CKEditor](https://symfony.com/doc/master/bundles/FO
2121
$ bin/console ckeditor:install
2222
```
2323

24+
Since FOSCKEditorBundle 2.0, to make Twig render the WYSIWYG editor, you must add some configuration under the `twig.form_themes` config key:
25+
26+
```yaml
27+
# Symfony 2/3: app/config/config.yml
28+
# Symfony 4: config/packages/twig.yaml
29+
30+
twig:
31+
form_themes:
32+
- '@FOSCKEditor/Form/ckeditor_widget.html.twig'
33+
```
34+
2435
Import required config in your `config/packages/_sylius.yaml` file:
2536

2637
```yaml

0 commit comments

Comments
 (0)