1
1
< section id ="codemirror " ng-app ="doc.ui-codeMirror ">
2
2
3
-
4
3
<!-- =Minimal code
5
4
--------------------------------------------------------------------------- -->
6
- < div id ="demo-mini " class ="row ">
7
- < div class ="span12 ">
8
- < div class ="page-header ">
9
- < h1 > Minimal code</ h1 >
5
+ < div id ="demo-mini ">
6
+ < div class ="page-header ">
7
+ < h1 > Minimal code</ h1 >
8
+ </ div >
9
+ < div class ="row ">
10
+ < div class ="col-md-6 ">
11
+ < div ui-codemirror > Code mirror here</ div >
10
12
</ div >
11
- < div class ="row ">
12
- < div class ="span6 ">
13
- < div ui-codemirror > Code mirror here</ div >
14
- </ div >
15
13
16
- < div class ="span6 " ng-controller ="PlunkerCtrl "
17
- ng-init ="
14
+ < div class ="col-md-6 " ng-controller ="PlunkerCtrl "
15
+ ng-init ="
18
16
vendor_css=['http://codemirror.net/lib/codemirror.css'];
19
17
vendor_js=['http://codemirror.net/lib/codemirror.js'];
20
- "
21
- >
22
- < div class ="pull-right ">
23
- < button class ="btn btn-info " ng-click ="edit('1.0.7 ', 'UI.Codemirror', 'ui-codemirror') ">
24
- < i class ="icon-edit icon-white "> </ i > Edit in plunker
25
- </ button >
26
- </ div >
18
+ "
19
+ >
20
+ < div class ="pull-right ">
21
+ < button class ="btn btn-info " ng-click ="edit('1.2.6 ', 'UI.Codemirror', 'ui-codemirror') ">
22
+ < i class ="glyphicon glyphicon-edit "> </ i > Edit in plunker
23
+ </ button >
24
+ </ div >
27
25
28
- < tabset >
29
- < tab heading ="Markup ">
30
- < div plunker-content ="markup ">
26
+ < tabset >
27
+ < tab heading ="Markup ">
28
+ < div plunker-content ="markup ">
31
29
< pre class ="prettyprint "> <section>
32
-
33
30
<div ui-codemirror >Code mirror here</div>
34
-
35
31
</section></ pre >
36
- </ div >
37
- </ tab >
38
- </ tabset >
39
- </ div >
32
+ </ div >
33
+ </ tab >
34
+ </ tabset >
40
35
</ div >
41
36
</ div >
42
37
</ div >
43
38
44
39
45
40
<!-- =General options demo
46
41
--------------------------------------------------------------------------- -->
47
- < div id ="demo-general " class ="row ">
48
- < div class ="span12 ">
49
- < div class ="page-header ">
50
- < h1 > General options</ h1 >
51
- </ div >
52
- < div class ="row ">
53
- < div class ="span6 ">
54
- < div ui-codemirror ="{
55
- lineNumbers: true,
56
- theme:'twilight',
57
- readOnly: 'nocursor',
58
- lineWrapping : true,
59
- mode: 'xml'
60
- } "> <html style="color: green">
42
+ < div id ="demo-general ">
43
+ < div class ="page-header ">
44
+ < h1 > General options</ h1 >
45
+ </ div >
46
+ < div class ="row ">
47
+ < div class ="col-md-6 ">
48
+ < div ui-codemirror ="{
49
+ lineNumbers: true,
50
+ theme:'twilight',
51
+ readOnly: 'nocursor',
52
+ lineWrapping : true,
53
+ mode: 'xml'
54
+ } "> <html style="color: green">
61
55
<!-- this is a comment -->
62
56
<head>
63
57
<title>HTML Example</title>
@@ -67,23 +61,23 @@ <h1>General options</h1>
67
61
I mean&quot;</em>... but might not match your style.
68
62
</body>
69
63
</html></ div >
70
- </ div >
64
+ </ div >
71
65
72
- < div class ="span6 " ng-controller ="PlunkerCtrl "
73
- ng-init ="
66
+ < div class ="col-md-6 " ng-controller ="PlunkerCtrl "
67
+ ng-init ="
74
68
vendor_css=['http://codemirror.net/lib/codemirror.css', 'http://codemirror.net/theme/twilight.css'];
75
69
vendor_js=['http://codemirror.net/lib/codemirror.js', 'http://codemirror.net/mode/xml/xml.js'];
76
- "
77
- >
78
- < div class ="pull-right ">
79
- < button class ="btn btn-info " ng-click ="edit('1.0.7 ', 'UI.Codemirror', 'ui-codemirror') ">
80
- < i class ="icon-edit icon-white "> </ i > Edit in plunker
81
- </ button >
82
- </ div >
70
+ "
71
+ >
72
+ < div class ="pull-right ">
73
+ < button class ="btn btn-info " ng-click ="edit('1.2.6 ', 'UI.Codemirror', 'ui-codemirror') ">
74
+ < i class ="glyphicon glyphicon-edit "> </ i > Edit in plunker
75
+ </ button >
76
+ </ div >
83
77
84
- < tabset >
85
- < tab heading ="Markup ">
86
- < div plunker-content ="markup ">
78
+ < tabset >
79
+ < tab heading ="Markup ">
80
+ < div plunker-content ="markup ">
87
81
< pre class ="prettyprint "> <section>
88
82
<div ui-codemirror="{
89
83
lineNumbers: true,
@@ -101,26 +95,28 @@ <h1>General options</h1>
101
95
I mean&amp;quot;&lt;/em&gt;... but might not match your style.
102
96
&lt;/body&gt;
103
97
&lt;/html&gt;</div>
104
-
105
98
</section></ pre >
106
99
</ div >
107
100
</ tab >
108
101
</ tabset >
109
102
</ div >
110
103
</ div >
111
- </ div >
112
104
</ div >
113
105
114
106
115
107
<!-- =Mode-Changing demo
116
108
--------------------------------------------------------------------------- -->
117
- < div id ="demo-mode-changing " class ="row ">
118
- < div class ="span12 " ng-controller ="CodemirrorCtrl ">
109
+ < div id ="demo-mode-changing ">
119
110
< div class ="page-header ">
120
111
< h1 > Mode-Changing demo</ h1 >
121
112
</ div >
122
- < textarea ui-codemirror ="cmOption " ng-model ="cmModel "> </ textarea >
123
- Mode : < select ng-model ="mode " ng-options ="m for m in modes " ng-change ="modeChanged() "> </ select >
113
+ < div class ="row " ng-controller ="CodemirrorCtrl ">
114
+ < div class ="col-md-12 ">
115
+ < textarea ui-codemirror ="cmOption " ng-model ="cmModel "> </ textarea >
116
+ </ div >
117
+ < div class ="col-md-6 ">
118
+ Mode : < select class ="form-control " ng-model ="mode " ng-options ="m for m in modes " ng-change ="modeChanged() "> </ select >
119
+ </ div >
124
120
</ div >
125
121
</ div >
126
122
@@ -135,8 +131,8 @@ <h1>Mode-Changing demo</h1>
135
131
"
136
132
>
137
133
< div class ="pull-right ">
138
- < button class ="btn btn-info " ng-click ="edit('1.0.7 ', 'UI.Codemirror', 'ui-codemirror') ">
139
- < i class ="icon-edit icon-white "> </ i > Edit in plunker
134
+ < button class ="btn btn-info " ng-click ="edit('1.2.6 ', 'UI.Codemirror', 'ui-codemirror') ">
135
+ < i class ="glyphicon glyphicon-edit "> </ i > Edit in plunker
140
136
</ button >
141
137
</ div >
142
138
@@ -150,6 +146,8 @@ <h1>Mode-Changing demo</h1>
150
146
Mode : <select ng-model="mode" ng-options="m for m in modes" ng-change="modeChanged()"></select>
151
147
152
148
</section></ pre >
149
+
150
+ < div style ="margin-top: 450px; "> </ div >
153
151
</ div >
154
152
</ tab >
155
153
< tab heading ="JavaScript ">
0 commit comments