Download the PHP package solilokiam/summernotebundle without Composer
On this page you can find all versions of the php package solilokiam/summernotebundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download solilokiam/summernotebundle
More information about solilokiam/summernotebundle
Files in solilokiam/summernotebundle
Package summernotebundle
Short Description This bundle provides a WYSIWYG editor form type based on summernote
License MIT
Informations about the package summernotebundle
SummernoteBundle
What is SummernoteBundle?
Summernotebundle integrates SummerNote WYSIWYG Editor into Symfony form type.
Status
Requirements
Minimum requirements for this bundle are:
- Symfony 2.3
- Twitter's Bootstrap 3.0
- jQuery 1.9
Installation
Add SummernoteBundle to your application's composer.json
file
Add SummernoteBundle to your application's AppKernel.php
file
Add Routing information to your application's routing.yml
:
Minimal Configuration
You must determine which object manager are you using. Currently it only supports Doctrine ODM, and doctrine ORM.
app/config/config.yml
You must also tell which class is going to inherit the bundle asset class.
An example for the asset class can be like this (doctrine odm):
Additional Configuration
Summernote supports some configuration parameters. This parameters can configured application wide in config.yml.
-
width: This is the width of summernote widget
-
focus: Autofocus the widget.
- toolbar: Configure toolbars of the widget.Every line in toolbar config is a different button group. You can check available buttons at summernote documentation
Usage
Summernote bundle provides a formtype. This example form uses it:
You need also to add some twig tags in your templates to import all CSS and JS needed to make summernote work: