Installation
Edit this pageWarning: You are browsing the documentation for version 1.x which is not maintained anymore.
If some of your projects are still using this version, consider upgrading.
Installation
Download the Bundle
Require the bundle in your composer.json
file:
1
$ composer require friendsofsymfony/ckeditor-bundle
Register the Bundle
Then, update your app/AppKernel.php
:
1 2 3 4 5 6 7 8 9 10 11 12
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new FOS\CKEditorBundle\FOSCKEditorBundle(),
// ...
);
// ...
}
}
Download CKEditor
Once, you have registered the bundle, you need to install CKEditor:
If you're using Symfony <= 2.8:
1
$ php app/console ckeditor:install
If you're using Symfony >= 3.0:
1
$ php bin/console ckeditor:install
If you want to learn more about this command, you can read its documentation.
Install the Assets
Once, you have downloaded CKEditor, you need to install it in the web directory.
If you're using Symfony <= 2.8:
1
$ php app/console assets:install web
If you're using Symfony >= 3.0 without Symfony Flex:
1
$ php bin/console assets:install web
If you're using Symfony Flex:
1
$ php bin/console assets:install public
This work, including the code samples, is licensed under a
Creative Commons BY-SA 3.0
license.