Symfony2 Bundle to integrate the CKEditor plugin Widget, (*1)
Current Version
Widget v4.5.1, (*2)
Installation
Add bundle to your composer.json file
``` js
// composer.json, (*3)
{
"require": {
// ...
"stinger/ckeditor-widget-bundle": "~4.5.1"
}
}, (*4)
### Add bundle to your application kernel
``` php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Stinger\CKEditorWidgetBundle\StingerCKEditorWidgetBundle(),
// ...
);
}
Download the bundle using Composer
``` bash
$ php composer.phar update stinger/ckeditor-widget-bundle, (*5)
### Install assets
Given your server's public directory is named "web", install the public vendor resources
``` bash
$ php app/console assets:install web
Optionally, use the --symlink attribute to create links rather than copies of the resources, (*6)
``` bash
$ php app/console assets:install --symlink web, (*7)
### Usage
``` yaml
trsteel_ckeditor:
external_plugins:
widget:
path: 'bundles/stingerckeditorwidget'
Licenses
Refer to the source code of the included files for license information, (*8)
References
- http://ckeditor.com/addon/wdget
- http://symfony.com