index.rst 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Getting started with FOSCKEditorBundle
  2. ========================================
  3. .. toctree::
  4. :hidden:
  5. installation
  6. migration
  7. usage/index
  8. Overview
  9. --------
  10. The bundle integrates `CKEditor`_ into `Symfony`_ via the `Form Component`_. It
  11. automatically registers a new type called ``ckeditor`` which can be fully
  12. configured. This type extends the `textarea`_ one, meaning all textarea options
  13. are available.
  14. Here, an example where we customize the `CKEditor config`_::
  15. use FOS\CKEditorBundle\Form\Type\CKEditorType;
  16. $builder->add('field', CKEditorType::class, array(
  17. 'config' => array(
  18. 'uiColor' => '#ffffff',
  19. //...
  20. ),
  21. ));
  22. Installation
  23. ------------
  24. To install the bundle, please, read the :doc:`Installation documentation <installation>`.
  25. Migration from IvoryCKEditorBundle to FOSCKEditorBundle
  26. -------------------------------------------------------
  27. As IvoryCKEditorBundle was abandoned, FriendsOfSymfony took this bundle over, to help
  28. you easily migrate :doc:`just follow our guide <migration>`.
  29. Usage
  30. -----
  31. If you want to learn more, this documentation covers the following use cases:
  32. .. include:: usage/index.rst.inc
  33. Contributing
  34. ------------
  35. .. _`CKEditor`: http://ckeditor.com/
  36. .. _`Symfony`: http://symfony.com/
  37. .. _`Form Component`: http://symfony.com/doc/current/book/forms.html
  38. .. _`textarea`: http://symfony.com/doc/current/reference/forms/types/textarea.html
  39. .. _`CKEditor config`: http://docs.ckeditor.com/#!/api/CKEDITOR.config