phpsymfonyckeditorsymfony-sonatasonata

Sonata News Bundle - Add CKEditor


I'm a beginner in Symfony and I am trying to set up CKEditor for the Sonata News Bundle.

I have looked everywhere (even on German forums whereas I don't speak German !) but I cannot find any answer anywhere.

Does anyone have a clue or a solution to my question ?

Thank you everyone.

Louis


Solution

  • I would suggest you to use IvoryCKEditorBundle

    Download the Bundle:

    composer require egeloen/ckeditor-bundle
    

    Register the Bundle, Then, update your app/AppKernel.php

    class AppKernel extends Kernel
    {
        public function registerBundles()
        {
            $bundles = array(
                new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
                // ...
            );
    
            // ...
        }
    }
    

    If you're using Symfony <= 2.8:

    php app/console ckeditor:install
    php app/console assets:install web
    

    If you're using Symfony >= 3.0:

    php bin/console ckeditor:install
    php bin/console assets:install web
    

    Then usage