Download the PHP package app-verk/redactor-bundle without Composer
On this page you can find all versions of the php package app-verk/redactor-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package redactor-bundle
RedactorBundle
Symfony Redactor Bundle. The bundle required to working redactor.js script.
Configure
Require the bundle with composer:
$ composer require app-verk/redactor-bundle
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new AppVerk\RedactorBundle\RedactorBundle(),
// ...
);
}
Add to config.yml:
twig:
form:
resources:
- 'RedactorBundle:Redactor:fields.html.twig'
redactor:
basic:
settings:
lang: 'en'
minHeight: 300
Add these libs into your layout:
<!--css -->
<link rel="stylesheet" href="{{ asset('/your-folder/redactor.css') }}" />
<!-- js -->
<script src="{{ asset('/your-folder/redactor.js') }}"></script>
<script src="{{ asset('bundles/redactor/js/symfony-script.js') }}"></script>
Redactor Form Type
<?php
use Symfony\Component\Form\AbstractType;
use AppVerk\RedactorBundle\Form\Type\RedactorType;
use Symfony\Component\Form\FormBuilderInterface;
class Post extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$formMapper
->add('body', RedactorType::class, [
'redactor' => 'basic' // your config name
])
;
}
}
License
The bundle is released under the MIT License.
All versions of redactor-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
The package app-verk/redactor-bundle contains the following files
Loading the files please wait ....