dev-master
9999999-devReplace textarea with CKeditor. Come configured with working Image Upload & Media Embed support.
GPL-3.0+
The Requires
Replace textarea with CKeditor. Come configured with working Image Upload & Media Embed support.
Replace textarea with CKeditor., (*1)
Come configured with working Image Upload & Media Embed support, (*2)
public function registerBundles() { $bundles = array( ... new ZenSide\CKEditorBundle\ZenSideCKEditorBundle(), ) }
zenside_ckeditor: resource: "@ZenSideCKEditorBundle/Resources/config/routing.yml"
{% include 'ZenSideCKEditorBundle::ckeditor_init.html.twig' %}
, (*3)
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)
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)
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"
You can import (after previous include) your own config.js file to overide default bundle configuration, (*9)
Replace textarea with CKeditor. Come configured with working Image Upload & Media Embed support.
GPL-3.0+