Search code examples
symfonysymfony-sonatasonata-media-bundle

Medias in CKEditor with CoopTilleulsCKEditorSonataMediaBundle


I managed to run the upload images via WYSIWYG CKEditor using SonataMediaBundle and CoopTilleulsCKEditorSonataMediaBundle.

My question is, I do not understand what is the meaning of the elements of this syntax:

CKEditor form fields:

        $builder
        ->add(
            'body',
            'ckeditor',
            array(
                'config' => array(
                    'toolbar' => array(
                        array(
                            'name' => 'links',
                            'items' => array('Link','Unlink'),
                        ),
                        array(
                            'name' => 'insert',
                            'items' => array('Image'),
                        ),
                    )
                )
            ));

Thanks !!


Solution

  • It is just a default configuration setting of usage of ckeditor in your form, anyway if u want to more detail u may follow the link: Ivory Ckeditor Usage