gkratz / editorbundle
A wysiwyg editor new generation for symfony 3 projects
dev-master / dev-master
2017-07-23 20:32 UTC
Requires
- php: >=5.5.0
- doctrine/doctrine-bundle: *
- symfony/framework-bundle: >=3.0.1
- twig/twig: *
This package is auto-updated.
Last update: 2020-05-29 04:58:53 UTC
README
1) //-- add in the composer.json of your project --//
"require": {
// ...
"gkratz/editorbundle": "dev-master"
}
2) //-- activate the bundle in your app/AppKernel.php --//
new Gkratz\EditorBundle\GkratzEditorBundle(),
3) //-- enter this command in your terminal --//
php composer update gkratz/editorbundle
How to use
1) //-- in the builder of your form, use the gkeditor formtype by this way --//
$builder->add('search', \Gkratz\EditorBundle\Form\Type\GkeditorType::class, array(
'attr' => array(
'class' => 'gkeditor' //necessary
)
));
2) //-- import the js into your twig file --//
<script src="{{ asset('bundles/gkratzeditor/tinymce/tinymce.min.js') }}"></script>
<script src="{{ asset('bundles/gkratzeditor/tinymce/utinymce.js') }}"></script>