Skip to content

Commit

Permalink
Improved docs about Twig configuration for bundle install (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsche authored and kunicmarko20 committed Dec 5, 2018
1 parent 957a318 commit 78dcab7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions UPGRADE-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,14 @@ symfony/templating has been dropped along with php templates.
Twig is now a required dependency and only templating engine this library supports.

Composer Script has been removed.

To make Twig render the editors, you must add some configuration under the `twig.form_themes` config key:

```yaml
# Symfony 2/3: app/config/config.yml
# Symfony 4: config/packages/twig.yaml

twig:
form_themes:
- '@FOSCKEditor/Form/ckeditor_widget.html.twig'
```
18 changes: 18 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,21 @@ If you're using Symfony Flex:
.. code-block:: bash
$ php bin/console assets:install public
Configure Twig
--------------

.. note::

This step is not required if you installed the bundle using Symfony Flex and the recipe was installed.

Finally, add some configuration under the `twig.form_themes` config key:

.. code-block:: yaml
# Symfony 2/3: app/config/config.yml
# Symfony 4: config/packages/twig.yaml
twig:
form_themes:
- '@FOSCKEditor/Form/ckeditor_widget.html.twig'

0 comments on commit 78dcab7

Please sign in to comment.