Download the PHP package pepsit36/summernotebundle without Composer
On this page you can find all versions of the php package pepsit36/summernotebundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pepsit36/summernotebundle
More information about pepsit36/summernotebundle
Files in pepsit36/summernotebundle
Package summernotebundle
Short Description This bundle provides a form type based on Summernote, a WYSWYG editor
License MIT
Informations about the package summernotebundle
Pepsit36/SummernoteBundle
This bundle provides a form type based on Summernote, a WYSIWYG editor. (A CKEditor and TinyMCE alternative and Open Source).
Proudly develop by Sébastien Duplessy.
Requirements
Minimum requirements for this bundle:
- Symfony 2.3
- Twitter Bootstrap 3.0
- JQuery 1.9
Installation
-
Add Pepsit36/SummernoteBundle to your application's
composer.json
file -
Add Pepsit36/SummernoteBundle to your application's
AppKernel.php
file - Add routing information to your application's
routing.yml
:
Minimal Configuration
-
You must to execute a update of your database to add images' entity.
-
You need to download the package on summernote's website : http://summernote.org/ and you can extract his
dist
folder on the folderYourApp/web/resources/summernote
, you can change it in yourconfig.yml
, for more information see below. -
Please consider installing yourself the dependence of Summernote (Bootstrap + JQuery) in the page you'll use it. Please refer to Bootstrap's Website and JQuery's Website for more informations.
- For security reasons you need to create the folder manually where the picture will be storage. The default folder is
YourApp/web/uploads/images/summernote
, you can change it in yourconfig.yml
, for more information see below.
Additional Configuration
Pepsit36/Summernote supports some configuration parameters. These parameters can be configured in config.yml. See below the default configuration.
-
width: This is the width of Summernote widget (default: 0)
-
height: This is the height of Summernote widget.
-
focus: This will focus editable area after initializing Summernote widget.
-
toolbar: This will configure the toolbar of Summernote widget.
-
styleTags: This will configure the style tags available for Summernote widget.
-
fontNames: This will configure the font names available for Summernote widget.
-
fontSizes: This will configure the font sizes available for Summernote widget.
-
colors: This will configure the colors available for Summernote widget.
-
placeholder: This will configure the placeholder.
-
summernote_path: This will configure the path of summernote's folder, if false the summernote's files will be not include. (default: false)
- images_path: This will configure the path where will be storage uploaded images.
Usage
Pepsit36/Summernote bundle provides a formtype. This example form uses it:
You also need to add some twig tags in your templates to import all CSS and JS needed to make summernote work: (form is your formview)
All versions of summernotebundle with dependencies
symfony/framework-bundle Version ~2.3
symfony/form Version ~2.3
doctrine/doctrine-bundle Version *