Skip to content

Commit ab2231f

Browse files
author
Aaron Mueller
committed
Adjust the README
1 parent 90052a4 commit ab2231f

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
SolutionCodeMirrorBundle [![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-
64
Integration [CodeMirror](http://codemirror.net/) editor in you symfony2 project.
75

86
###Install
97

108
Just 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

1513
Enable bundle , add to `AppKernel.php`:
@@ -22,17 +20,23 @@ Add default parameters to `config.yml`:
2220
twig:
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

2730
solution_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

0 commit comments

Comments
 (0)