Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

⚙️ Sonata media management for the CKEditor

License

Notifications You must be signed in to change notification settings

nucleos/SonataCKEditorBundle

Repository files navigation

WARNING: This repository is deprecated

As the CKEDITOR changed it's pricing model, this project will no longer receive any updates.

You might use FOSCKEditorBundle instead.

SonataCKEditorBundle

Latest Stable Version Latest Unstable Version License

Total Downloads Monthly Downloads Daily Downloads

Continuous Integration Code Coverage Type Coverage

Symfony Bundle that allows sonata media management for the CKEditor.

Documentation

Installation

1. Add dependency with Composer

composer require nucleos/sonata-ckeditor-bundle

2. Enable the bundle for all Symfony environments:

// bundles.php
return [
    //...
    Nucleos\SonataCKEditorBundle\SonataCKEditorBundle::class => ['all' => true],
];

Configuration

sonata_ck_editor:
    templates:
        browse: '@SonataCKEditor/browser.html.twig'
        upload: '@SonataCKEditor/upload.html.twig'
    autoconfig: # Can be disabled
        contexts: [default]
        browseRoute: admin_app_media_media_ckeditor_browse
        uploadRoute: admin_app_media_media_ckeditor_upload
        fileProvider: sonata.media.provider.file
        imageProvider: sonata.media.provider.image
        imageContext: default
        imageFormat: null