2017 © Pedro Peláez
 

symfony-bundle ckeditor-bundle

Replace textarea with CKeditor. Come configured with working Image Upload & Media Embed support.

image

zenside/ckeditor-bundle

Replace textarea with CKeditor. Come configured with working Image Upload & Media Embed support.

  • Friday, November 27, 2015
  • by janel-nicolas
  • Repository
  • 1 Watchers
  • 1 Stars
  • 24 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

ZenSide CKEditor Bundle

Replace textarea with CKeditor., (*1)

Come configured with working Image Upload & Media Embed support, (*2)

1.Add Bundle to AppKernel

public function registerBundles()
{
    $bundles = array(
        ...
        new ZenSide\CKEditorBundle\ZenSideCKEditorBundle(),
    )
}

2.Add route to routing.yml

zenside_ckeditor:
    resource: "@ZenSideCKEditorBundle/Resources/config/routing.yml"

3.Add initialisation to your layout

{% include 'ZenSideCKEditorBundle::ckeditor_init.html.twig' %}, (*3)

4.Change selector used (optional)

By default all textarea will be replaced. To filter it you can pass a css selector to the include call :, (*4)

{% include 'ZenSideCKEditorBundle::ckeditor_init.html.twig' with {'selector':'textarea.ckeditor'} %}, (*5)

5. Change Stylesheet applied inside editor (optional)

You can overwrite the default styles of the ckeditor by giving your own stylesheet asset path to the init file, (*6)

{% include 'ZenSideCKEditorBundle::ckeditor_init.html.twig' with {'contentsCss':'bundles/mybundlename/css/myStyleFile.css'} %}, (*7)

4.File Upload configuration (optional)

By default, files uploaded are moved into /web/uploads/cke. You can change this with parameter ckeditor.upload_dir in parameters.yml. Note that this folder will be relative to /web folder (had to be visible from browser to be included in CKEditor visualisation)., (*8)

// parameters.yml
parameters:
    ...
    ckeditor.upload_dir = "/myuploaddir"

5.Change CKEditor configuration (optional)

You can import (after previous include) your own config.js file to overide default bundle configuration, (*9)

The Versions

27/11 2015

dev-master

9999999-dev

Replace textarea with CKeditor. Come configured with working Image Upload & Media Embed support.

  Sources   Download

GPL-3.0+

The Requires