dev-master
9999999-devThis Bundle integrates CodeMirror editor into a Symfony2 project.
MIT
The Requires
editor codemirror html editor php editor
This Bundle integrates CodeMirror editor into a Symfony2 project.
Bundle not yet ready., (*1)
Integration CodeMirror editor in you symfony2 project., (*2)
Just add the following line to your projects composer.json require section, and update vendors: ``` js "solution/code-mirror-bundle": "dev-master", (*3)
Enable bundle , add to `AppKernel.php`: ``` php new Solution\CodeMirrorBundle\SolutionCodeMirrorBundle()
Add default parameters to config.yml
:
``` yaml
twig:
form:
resources:
- 'SolutionCodeMirrorBundle:Form:redactor_widget.html.twig', (*4)
solution_code_mirror: parameters: mode: text/html lineNumbers: true lineWrapping: true mode_dirs: - @SolutionCodeMirrorBundle/Resources/public/js/mode themes_dirs: - @SolutionCodeMirrorBundle/Resources/public/css/theme, (*5)
Install assets: ``` bash $ ./app/console assets:install web --symlink
php
$builder->add('content', 'code_mirror', array(
'required' => true,
'parameters' => array(
'lineNumbers' => 'true'
)
));
, (*6)
This Bundle integrates CodeMirror editor into a Symfony2 project.
MIT
editor codemirror html editor php editor