PHP code example of meniam / ckeditor-bundle
1. Go to this page and download the library: Download meniam/ckeditor-bundle library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
meniam / ckeditor-bundle example snippets
$form = $this->createFormBuilder($post)
->add('title', 'text')
->add('content', 'ckeditor', array(
'transformers' => array('html_purifier'),
'toolbar' => array('document','basicstyles'),
'toolbar_groups' => array(
'document' => array('Source')
),
'ui_color' => '#fff',
'startup_outline_blocks' => false,
'width' => '100%',
'height' => '320',
'language' => 'en-au',
'filebrowser_image_browse_url' => array(
'url' => 'relative-url.php?type=file',
),
'filebrowser_image_browse_url' => array(
'route' => 'route_name',
'route_parameters' => array(
'type' => 'image',
),
),
))
->getForm()
;
$form = $this->createFormBuilder($post)
->add('title', 'text')
->add('content', 'ckeditor', array(
'transformers' => array(),
))
->getForm()
;
bash
php composer.phar
php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Trsteel\CkeditorBundle\TrsteelCkeditorBundle(),
);
}
bash
$ php ./app/console config:dump-reference TrsteelCkeditorBundle