Skip to content

UKWebMedia/JonlilCKFinderBundle

Repository files navigation

JonlilCKFinderBundle

For documentation on CKFinder http://cksource.com/ckfinder
If you planing to configure ckeditor a little bit more :) https://github.com/egeloen/IvoryCKEditorBundle

  1. Installation

"require": {
    "jonlil/ckfinder-bundle": "dev-master"
}
public function registerBundles()
{
    $bundles = array(
        new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
        new Jonlil\CKFinderBundle\JonlilCKFinderBundle('IvoryCKEditorBundle'),
    );
}
  1. Configuration

Routing
# app/config/routing.yml

ck_finder:
    resource: "@JonlilCKFinderBundle/Resources/config/routing/routing.yml"
    prefix: /ckfinder
For usage with amazon s3
# app/config/config.yml

jonlil_ck_finder:
    license:
        key: ""
        name: ""
    baseDir: "/"
    baseUrl: "http://s3.amazonaws.com"
    service: "s3"
    accessKey: ""
    secret: ""
    bucket: ""
For usage with native php storage
jonlil_ck_finder:
    license: # optional, can be used in demo mode also
        key: ""
        name: ""
    baseDir: "%assetic.read_from%"
    baseUrl: "/userfiles/"  # path where your files will be stored
    service: "php"
  1. Usage

# in your symfony2 form - add this
public function buildForm (FormBuilderInterface $builder, array $options)
{
    $builder
        ->add('title')
        ->add('text', 'ckfinder')
        ->add('createdAt')
        ->add('updatedAt')
    ;
}
  1. Todos

Fix amazon s3 thumbnails - Refer to this project https://github.com/jonlil/ckfinder

About

CKFinderBundle for symfony2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published