File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11SolutionCodeMirrorBundle [ ![ Build Status] ( https://api.travis-ci.org/f1nder/SolutionCodeMirrorBundle.png?branch=master )] ( https://travis-ci.org/f1nder/SolutionCodeMirrorBundle )
22========================
33
4- Bundle not yet ready.
5-
64Integration [ CodeMirror] ( http://codemirror.net/ ) editor in you symfony2 project.
75
86###Install
97
108Just add the following line to your projects composer.json require section, and update vendors:
119``` js
12- " solution /code-mirror-bundle" : " dev-master"
10+ " nitrado /code-mirror-bundle" : " dev-master"
1311```
1412
1513Enable bundle , add to ` AppKernel.php ` :
@@ -22,17 +20,23 @@ Add default parameters to `config.yml`:
2220twig :
2321 form :
2422 resources :
25- - ' SolutionCodeMirrorBundle:Form:redactor_widget.html.twig'
23+ - ' SolutionCodeMirrorBundle:Form:code_mirror_widget.html.twig'
24+
25+ assetic :
26+ bundles :
27+ - # ... other bundles
28+ - SolutionCodeMirrorBundle
2629
2730solution_code_mirror :
2831 parameters :
29- mode : text/html
30- lineNumbers : true
31- lineWrapping : true
32+ mode : text/html
33+ lineNumbers : true
34+ lineWrapping : true
35+ theme : base16-dark
3236 mode_dirs :
33- - @SolutionCodeMirrorBundle/Resources/public/js/mode
37+ - @SolutionCodeMirrorBundle/Resources/public/js/mode
3438 themes_dirs :
35- - @SolutionCodeMirrorBundle/Resources/public/css/theme
39+ - @SolutionCodeMirrorBundle/Resources/public/css/theme
3640```
3741
3842
You can’t perform that action at this time.
0 commit comments