skin.rst 973 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. Skin support
  2. ============
  3. Install your Skin
  4. -----------------
  5. First of all, you need to download and extract your skin in the web directory.
  6. For that, you have two possibilities:
  7. #. Directly put it in the web directory (``/web/ckeditor/`` for example).
  8. #. Put it in the ``/Resources/public/`` directory of any of your bundles and
  9. install the assets.
  10. Register your Skin
  11. ------------------
  12. Then, to use your skin, just need to register it globally in your configuration:
  13. .. code-block:: yaml
  14. # app/config/config.yml
  15. fos_ck_editor:
  16. default_config: my_config
  17. configs:
  18. my_config:
  19. skin: "skin_name,/bundles/mybundle/skins/skin_name/"
  20. Or you can do it in your widget:
  21. .. code-block:: php
  22. $builder->add('field', 'ckeditor', array(
  23. 'config' => array('skin' => 'skin_name,/bundles/mybundle/skins/skin_name/'),
  24. ));
  25. .. note::
  26. The skin path must be an absolute path relative to the `web` directory.