1
- < section id ="aces " ng-app ="doc.ui-ace ">
1
+ < section id ="aces " ng-app ="doc.ui-ace " ng-cloak >
2
2
3
3
<!-- =Minimal code
4
4
--------------------------------------------------------------------------- -->
5
- < div class ="row ">
6
- < div class ="span12 ">
7
- < div class ="page-header ">
8
- < 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 id ="demo-mini ">
12
+ < div ui-ace > Ace here</ div >
9
13
</ div >
10
- < div class ="row ">
11
- < div class ="span6 ">
12
- < div id ="demo-mini ">
13
- < div ui-ace > Ace here</ div >
14
- </ div >
15
- </ div >
16
-
17
- < div class ="span6 " ng-controller ="PlunkerCtrl "
18
- ng-init ="
19
- vendor_js=['https://rawgithub.com/ajaxorg/ace-builds/v1.1.1/src-min-noconflict/ace.js'];
20
- "
21
- >
22
- < div class ="pull-right ">
23
- < button class ="btn btn-info " ng-click ="edit('1.0.7', 'UI.Ace', 'ui-ace') "> < i
24
- class ="icon-edit icon-white "> </ i > Edit in plunker
25
- </ button >
26
- </ div >
27
-
28
- < tabset >
29
- < tab heading ="Markup ">
30
- < div plunker-content ="markup ">
31
- < pre class ="prettyprint "> <section>
14
+ </ div >
32
15
33
- <div ui-ace >Ace here</div>
16
+ < div class ="col-md-6 " ng-controller ="PlunkerCtrl "
17
+ ng-init ="
18
+ vendor_js=['https://rawgithub.com/ajaxorg/ace-builds/v1.1.1/src-min-noconflict/ace.js'];
19
+ "
20
+ >
21
+ < div class ="pull-right ">
22
+ < button class ="btn btn-info " ng-click ="edit('1.2.6', 'UI.Ace', 'ui-ace') "> < i
23
+ class ="icon-edit icon-white "> </ i > Edit in plunker
24
+ </ button >
25
+ </ div >
34
26
27
+ < tabset >
28
+ < tab heading ="Markup ">
29
+ < div plunker-content ="markup ">
30
+ < pre class ="prettyprint "> <section>
31
+ <div ui-ace >Ace here</div>
35
32
</section></ pre >
36
- </ div >
37
- </ tab >
38
- < tab heading ="CSS ">
39
- < div plunker-content ="css ">
40
- < pre class ="prettyprint "> .ace_editor {
33
+ </ div >
34
+ </ tab >
35
+ < tab heading ="CSS ">
36
+ < div plunker-content ="css ">
37
+ < pre class ="prettyprint "> .ace_editor {
41
38
height : 200px;
42
39
}
43
- </ pre >
44
- </ div >
45
- </ tab >
46
- </ tabset >
47
- </ div >
48
- </ div >
40
+ </ pre >
41
+ </ div >
42
+ </ tab >
43
+ </ tabset >
49
44
</ div >
50
45
</ div >
51
-
46
+ </ div >
52
47
53
48
<!-- =General options demo
54
49
--------------------------------------------------------------------------- -->
55
- < div id ="demo-general " class ="row ">
56
- < div class ="span12 ">
57
- < div class ="page-header ">
58
- < h1 > General options</ h1 >
59
- </ div >
60
- < div class ="row ">
61
- < div class ="span6 ">
62
- < div >
63
- < div ui-ace ="{
64
- useWrapMode : true,
65
- showGutter: false,
66
- theme:'twilight',
67
- mode: 'markdown'
68
- } "> # Theme and mode
50
+ < div id ="demo-general ">
51
+ < div class ="page-header ">
52
+ < h1 > General options</ h1 >
53
+ </ div >
54
+ < div class ="row ">
55
+ < div class ="col-md-6 ">
56
+ < div >
57
+ < div ui-ace ="{
58
+ useWrapMode : true,
59
+ showGutter: false,
60
+ theme:'twilight',
61
+ mode: 'markdown'
62
+ } "> # Theme and mode
69
63
70
64
*Lorem ipsum* dolor sit amet, consectetur adipisicing elit, sed do eiusmod
71
65
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
72
66
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
73
67
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
74
68
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
75
69
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
76
- </ div >
77
70
</ div >
78
71
</ div >
72
+ </ div >
79
73
80
- < div class ="span6 " ng-controller ="PlunkerCtrl "
81
- ng-init ="
74
+ < div class ="col-md-6 " ng-controller ="PlunkerCtrl "
75
+ ng-init ="
82
76
vendor_js=['https://rawgithub.com/ajaxorg/ace-builds/v1.1.1/src-min-noconflict/ace.js'];
83
- "
84
- >
85
- < div class ="pull-right ">
86
- < button class ="btn btn-info " ng-click ="edit('1.0.7 ', 'UI.Ace', 'ui-ace') "> < i
87
- class ="icon-edit icon-white "> </ i > Edit in plunker
88
- </ button >
89
- </ div >
77
+ "
78
+ >
79
+ < div class ="pull-right ">
80
+ < button class ="btn btn-info " ng-click ="edit('1.2.6 ', 'UI.Ace', 'ui-ace') "> < i
81
+ class ="icon-edit icon-white "> </ i > Edit in plunker
82
+ </ button >
83
+ </ div >
90
84
91
- < tabset >
92
- < tab heading ="Markup ">
93
- < div plunker-content ="markup ">
85
+ < tabset >
86
+ < tab heading ="Markup ">
87
+ < div plunker-content ="markup ">
94
88
< pre class ="prettyprint "> <section>
95
89
<div ui-ace="{
96
90
useWrapMode : true,
@@ -107,44 +101,47 @@ <h1>General options</h1>
107
101
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
108
102
109
103
</section></ pre >
110
- </ div >
111
- </ tab >
112
- < tab heading ="CSS ">
113
- < div plunker-content ="css ">
104
+ </ div >
105
+ </ tab >
106
+ < tab heading ="CSS ">
107
+ < div plunker-content ="css ">
114
108
< pre class ="prettyprint "> .ace_editor {
115
109
height : 200px;
116
110
}
117
111
</ pre >
118
- </ div >
119
- </ tab >
120
- </ tabset >
121
- </ div >
112
+ < div style =" margin-top: 260px; " > </ div >
113
+ </ div >
114
+ </ tab >
115
+ </ tabset >
122
116
</ div >
123
117
</ div >
124
118
</ div >
125
119
126
120
<!-- =Mode-Changing demo
127
121
--------------------------------------------------------------------------- -->
128
- < div id ="demo-mode-changing " class ="row ">
129
- < div class ="span12 " ng-controller ="AceCtrl ">
122
+ < div id ="demo-mode-changing ">
130
123
< div class ="page-header ">
131
124
< h1 > Mode-Changing demo</ h1 >
132
125
</ div >
133
- < div >
134
- < div ui-ace ="aceOption " ng-model ="aceModel "> Ace here</ div >
126
+
127
+ < div class ="row " ng-controller ="AceCtrl ">
128
+ < div class ="col-md-12 ">
129
+ < div ui-ace ="aceOption " ng-model ="aceModel "> Ace here</ div >
130
+ </ div >
131
+ < div class ="col-md-6 ">
132
+ Mode : < select class ="form-control " ng-model ="mode " ng-options ="m for m in modes " ng-change ="modeChanged() "> </ select >
133
+ </ div >
135
134
</ div >
136
- Mode : < select ng-model ="mode " ng-options ="m for m in modes " ng-change ="modeChanged() ">
137
- </ select >
138
- </ div >
139
135
136
+ < hr >
140
137
141
- < div class =" span12 " ng-controller ="PlunkerCtrl "
138
+ < div ng-controller ="PlunkerCtrl "
142
139
ng-init ="
143
140
vendor_js=['https://rawgithub.com/ajaxorg/ace-builds/v1.1.1/src-min-noconflict/ace.js'];
144
141
"
145
142
>
146
143
< div class ="pull-right ">
147
- < button class ="btn btn-info " ng-click ="edit('1.0.7 ', 'UI.Ace', 'ui-ace') "> < i
144
+ < button class ="btn btn-info " ng-click ="edit('1.2.6 ', 'UI.Ace', 'ui-ace') "> < i
148
145
class ="icon-edit icon-white "> </ i > Edit in plunker
149
146
</ button >
150
147
</ div >
@@ -159,6 +156,7 @@ <h1>Mode-Changing demo</h1>
159
156
<select ng-model="mode" ng-options="m for m in modes" ng-change="modeChanged()"></select>
160
157
161
158
</section></ pre >
159
+ < div style ="margin-top: 390px; "> </ div >
162
160
</ div >
163
161
</ tab >
164
162
< tab heading ="JavaScript ">
@@ -199,6 +197,7 @@ <h1>Mode-Changing demo</h1>
199
197
height : 300px;
200
198
}
201
199
</ pre >
200
+ < div style ="margin-top: 470px; "> </ div >
202
201
</ div >
203
202
</ tab >
204
203
</ tabset >
0 commit comments