2017 © Pedro Peláez
 

symfony-bundle code-mirror-bundle

This Bundle integrates CodeMirror editor into a Symfony2 project.

image

solution/code-mirror-bundle

This Bundle integrates CodeMirror editor into a Symfony2 project.

  • Monday, June 3, 2013
  • by f1nder
  • Repository
  • 2 Watchers
  • 2 Stars
  • 742 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 13 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SolutionCodeMirrorBundle Build Status

Bundle not yet ready., (*1)

Integration CodeMirror editor in you symfony2 project., (*2)

Install

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()

Configuration

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

Usage

php $builder->add('content', 'code_mirror', array( 'required' => true, 'parameters' => array( 'lineNumbers' => 'true' ) ));, (*6)

The Versions

03/06 2013

dev-master

9999999-dev

This Bundle integrates CodeMirror editor into a Symfony2 project.

  Sources   Download

MIT

The Requires

 

editor codemirror html editor php editor