11< section id ="codemirror " ng-app ="doc.ui-codeMirror ">
22
3-
43<!-- =Minimal code
54--------------------------------------------------------------------------- -->
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 >
1012 </ div >
11- < div class ="row ">
12- < div class ="span6 ">
13- < div ui-codemirror > Code mirror here</ div >
14- </ div >
1513
16- < div class ="span6 " ng-controller ="PlunkerCtrl "
17- ng-init ="
14+ < div class ="col-md-6 " ng-controller ="PlunkerCtrl "
15+ ng-init ="
1816vendor_css=['http://codemirror.net/lib/codemirror.css'];
1917vendor_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 >
2725
28- < tabset >
29- < tab heading ="Markup ">
30- < div plunker-content ="markup ">
26+ < tabset >
27+ < tab heading ="Markup ">
28+ < div plunker-content ="markup ">
3129< pre class ="prettyprint "> <section>
32-
3330 <div ui-codemirror >Code mirror here</div>
34-
3531</section></ pre >
36- </ div >
37- </ tab >
38- </ tabset >
39- </ div >
32+ </ div >
33+ </ tab >
34+ </ tabset >
4035 </ div >
4136 </ div >
4237</ div >
4338
4439
4540<!-- =General options demo
4641--------------------------------------------------------------------------- -->
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">
6155<!-- this is a comment -->
6256<head>
6357<title>HTML Example</title>
@@ -67,23 +61,23 @@ <h1>General options</h1>
6761I mean&quot;</em>... but might not match your style.
6862</body>
6963</html></ div >
70- </ div >
64+ </ div >
7165
72- < div class ="span6 " ng-controller ="PlunkerCtrl "
73- ng-init ="
66+ < div class ="col-md-6 " ng-controller ="PlunkerCtrl "
67+ ng-init ="
7468vendor_css=['http://codemirror.net/lib/codemirror.css', 'http://codemirror.net/theme/twilight.css'];
7569vendor_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 >
8377
84- < tabset >
85- < tab heading ="Markup ">
86- < div plunker-content ="markup ">
78+ < tabset >
79+ < tab heading ="Markup ">
80+ < div plunker-content ="markup ">
8781< pre class ="prettyprint "> <section>
8882 <div ui-codemirror="{
8983 lineNumbers: true,
@@ -101,26 +95,28 @@ <h1>General options</h1>
10195I mean&amp;quot;&lt;/em&gt;... but might not match your style.
10296&lt;/body&gt;
10397&lt;/html&gt;</div>
104-
10598</section></ pre >
10699 </ div >
107100 </ tab >
108101 </ tabset >
109102 </ div >
110103 </ div >
111- </ div >
112104</ div >
113105
114106
115107<!-- =Mode-Changing demo
116108--------------------------------------------------------------------------- -->
117- < div id ="demo-mode-changing " class ="row ">
118- < div class ="span12 " ng-controller ="CodemirrorCtrl ">
109+ < div id ="demo-mode-changing ">
119110 < div class ="page-header ">
120111 < h1 > Mode-Changing demo</ h1 >
121112 </ 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 >
124120 </ div >
125121</ div >
126122
@@ -135,8 +131,8 @@ <h1>Mode-Changing demo</h1>
135131 "
136132 >
137133 < 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
140136 </ button >
141137 </ div >
142138
@@ -150,6 +146,8 @@ <h1>Mode-Changing demo</h1>
150146 Mode : <select ng-model="mode" ng-options="m for m in modes" ng-change="modeChanged()"></select>
151147
152148</section></ pre >
149+
150+ < div style ="margin-top: 450px; "> </ div >
153151 </ div >
154152 </ tab >
155153 < tab heading ="JavaScript ">
0 commit comments