forked from puikinsh/Bootstrap-Admin-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
form-wysiwyg.html
435 lines (391 loc) · 24.2 KB
/
form-wysiwyg.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
<!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--><html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Editor</title>
<meta name="description" content="Metis: Bootstrap Responsive Admin Theme">
<meta name="viewport" content="width=device-width">
<link type="text/css" rel="stylesheet" href="assets/css/bootstrap.min.css"/>
<link type="text/css" rel="stylesheet" href="assets/css/bootstrap-responsive.min.css"/>
<link type="text/css" rel="stylesheet" href="assets/Font-awesome/css/font-awesome.min.css"/>
<link type="text/css" rel="stylesheet" href="assets/css/style.css"/>
<link type="text/css" rel="stylesheet" href="assets/css/prettify.css"/>
<link type="text/css" rel="stylesheet" href="assets/wysihtml5/lib/css/wysiwyg-color.css"/>
<link type="text/css" rel="stylesheet" href="assets/wysihtml5/dist/bootstrap-wysihtml5-0.0.2.css"/>
<link type="text/css" rel="stylesheet" href="assets/css/Markdown.Editor.hack.css">
<link type="text/css" rel="stylesheet" href="assets/CLEditor1_4_3/jquery.cleditor.css">
<link rel="stylesheet" href="assets/css/theme.css">
<script type="text/javascript" src="assets/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if IE 7]>
<link type="text/css" rel="stylesheet" href="assets/Font-awesome/css/font-awesome-ie7.min.css"/>
<![endif]-->
</head>
<body>
<!-- #wrap -->
<div id="wrap">
<!-- #top -->
<div id="top">
<!-- .navbar -->
<div class="navbar navbar-inverse navbar-static-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="index.html">Metis</a> <!-- .topnav -->
<div class="btn-toolbar topnav">
<div class="btn-group">
<a id="changeSidebarPos" class="btn btn-success" rel="tooltip"
data-original-title="Show / Hide Sidebar" data-placement="bottom">
<i class="icon-resize-horizontal"></i>
</a>
</div>
<div class="btn-group">
<a class="btn btn-inverse" rel="tooltip" data-original-title="E-mail" data-placement="bottom">
<i class="icon-envelope"></i>
<span class="label label-warning">5</span>
</a>
<a class="btn btn-inverse" rel="tooltip" href="#" data-original-title="Messages"
data-placement="bottom">
<i class="icon-comments"></i>
<span class="label label-important">4</span>
</a>
</div>
<div class="btn-group">
<a class="btn btn-inverse" rel="tooltip" href="#" data-original-title="Document"
data-placement="bottom">
<i class="icon-file"></i>
</a>
<a href="#helpModal" class="btn btn-inverse" rel="tooltip" data-placement="bottom"
data-original-title="Help" data-toggle="modal">
<i class="icon-question-sign"></i>
</a>
</div>
<div class="btn-group">
<a class="btn btn-inverse" data-placement="bottom" data-original-title="Logout" rel="tooltip"
href="login.html"><i class="icon-off"></i></a></div>
</div>
<!-- /.topnav -->
<div class="nav-collapse collapse">
<!-- .nav -->
<ul class="nav">
<li><a href="index.html">Dashboard</a></li>
<li><a href="table.html">Tables</a></li>
<li><a href="file.html">File Manager</a></li>
<li class="dropdown active">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
Form Elements <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="form-general.html">General</a></li>
<li><a href="form-validation.html">Validation</a></li>
<li><a href="form-wysiwyg.html">WYSIWYG</a></li>
<li><a href="form-wizard.html">Wizard & File Upload</a></li>
</ul>
</li>
</ul>
<!-- /.nav -->
</div>
</div>
</div>
</div>
<!-- /.navbar -->
</div>
<!-- /#top -->
<!-- BEGIN HEADER.head -->
<header class="head">
<div class="search-bar">
<div class="row-fluid">
<div class="span12">
<div class="search-bar-inner">
<a id="menu-toggle" href="#menu" data-toggle="collapse"
class="accordion-toggle btn btn-inverse visible-phone"
rel="tooltip" data-placement="bottom" data-original-title="Show/Hide Menu">
<i class="icon-sort"></i>
</a>
<form class="main-search">
<input class="input-block-level" type="text" placeholder="Live search...">
<button id="searchBtn" type="submit" class="btn btn-inverse"><i class="icon-search"></i>
</button>
</form>
</div>
</div>
</div>
</div>
<!-- ."main-bar -->
<div class="main-bar">
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<h3><i class="icon-edit"></i> Editor</h3>
</div>
</div>
<!-- /.row-fluid -->
</div>
<!-- /.container-fluid -->
</div>
<!-- /.main-bar -->
</header>
<!-- END HEADER.head -->
<!-- #left -->
<div id="left">
<!-- .user-media -->
<div class="media user-media hidden-phone">
<a href="" class="user-link">
<img src="assets/img/user.gif" alt="" class="media-object img-polaroid user-img">
<span class="label user-label">16</span>
</a>
<div class="media-body hidden-tablet">
<h5 class="media-heading">Archie</h5>
<ul class="unstyled user-info">
<li><a href="">Administrator</a></li>
<li>Last Access : <br/>
<small><i class="icon-calendar"></i> 16 Mar 16:32</small>
</li>
</ul>
</div>
</div>
<!-- /.user-media -->
<!-- #menu -->
<ul id="menu" class="unstyled accordion collapse in">
<li class="accordion-group ">
<a data-parent="#menu" data-toggle="collapse" class="accordion-toggle" data-target="#dashboard-nav">
<i class="icon-dashboard icon-large"></i> Dashboard <span
class="label label-inverse pull-right">2</span>
</a>
<ul class="collapse " id="dashboard-nav">
<li><a href="index.html"><i class="icon-angle-right"></i> Default Style</a></li>
<li><a href="alterne.html"><i class="icon-angle-right"></i> Alternative Style</a></li>
</ul>
</li>
<li class="accordion-group ">
<a data-parent="#menu" data-toggle="collapse" class="accordion-toggle" data-target="#component-nav">
<i class="icon-tasks icon-large"></i> Components <span class="label label-inverse pull-right">2</span>
</a>
<ul class="collapse " id="component-nav">
<li><a href="icon.html"><i class="icon-angle-right"></i> Icon & Button</a></li>
<li><a href="progress.html"><i class="icon-angle-right"></i> Progress</a></li>
</ul>
</li>
<li class="accordion-group active">
<a data-parent="#menu" data-toggle="collapse" class="accordion-toggle collapsed" data-target="#form-nav">
<i class="icon-pencil icon-large"></i> Forms <span class="label label-inverse pull-right">4</span>
</a>
<ul class="collapse in" id="form-nav">
<li><a href="form-general.html"><i class="icon-angle-right"></i> General</a></li>
<li><a href="form-validation.html"><i class="icon-angle-right"></i> Validation</a></li>
<li><a href="form-wysiwyg.html"><i class="icon-angle-right"></i> WYSIWYG</a></li>
<li><a href="form-wizard.html"><i class="icon-angle-right"></i> Wizard & File Upload</a></li>
</ul>
</li>
<li>
<a href="table.html"><i class="icon-table icon-large"></i> Tables</a></li>
<li>
<a href="file.html"><i class="icon-file icon-large"></i> File Manager</a></li>
<li>
<a href="typography.html"><i class="icon-font icon-large"></i> Typography</a></li>
<li>
<a href="maps.html"><i class="icon-map-marker icon-large"></i> Maps</a></li>
<li><a href="chart.html"><i class="icon-bar-chart icon-large"></i> Charts</a></li>
<li>
<a href="calendar.html"><i class="icon-calendar icon-large"></i> Calendar</a></li>
<li class="accordion-group ">
<a data-parent="#menu" data-toggle="collapse" class="accordion-toggle" data-target="#error-nav">
<i class="icon-warning-sign icon-large"></i> Error Pages <span
class="label label-inverse pull-right">7</span>
</a>
<ul class="collapse" id="error-nav">
<li><a href="403.html"><i class="icon-angle-right"></i> 403</a></li>
<li><a href="404.html"><i class="icon-angle-right"></i> 404</a></li>
<li><a href="405.html"><i class="icon-angle-right"></i> 405</a></li>
<li><a href="500.html"><i class="icon-angle-right"></i> 500</a></li>
<li><a href="503.html"><i class="icon-angle-right"></i> 503</a></li>
<li><a href="offline.html"><i class="icon-angle-right"></i> offline</a></li>
<li><a href="countdown.html"><i class="icon-angle-right"></i> Under Construction</a></li>
</ul>
</li>
<li>
<a href="blank.html"><i class="icon-check-empty icon-large"></i> Blank Page</a></li>
<li>
<a href="login.html"><i class="icon-signin icon-large"></i> Login Page</a></li>
</ul>
<!-- /#menu -->
</div>
<!-- /#left -->
<!-- #content -->
<div id="content" class="">
<!-- .outer -->
<div class="container-fluid outer">
<div class="row-fluid">
<!-- .inner -->
<div class="span12 inner">
<div class="row-fluid">
<div class="span12">
<div class="box">
<header>
<div class="icons"><i class="icon-th-large"></i></div>
<h5>Basic Editor</h5>
<ul class="nav pull-right">
<li>
<div class="btn-group">
<a class="accordion-toggle btn btn-mini minimize-box" data-toggle="collapse"
href="#div-1">
<i class="icon-minus"></i>
</a>
<button class="btn btn-danger btn-mini close-box"><i
class="icon-remove"></i></button>
</div>
</li>
</ul>
</header>
<div id="div-1" class="body collapse in">
<form>
<textarea id="wysihtml5" class="span12"></textarea>
<div class="form-actions">
<input type="submit" value="Submit" class="btn btn-primary">
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<div class="box">
<header>
<div class="icons"><i class="icon-th-large"></i></div>
<h5>WYSIWYG Editor</h5>
<ul class="nav pull-right">
<li>
<div class="btn-group">
<a class="accordion-toggle btn btn-mini minimize-box" data-toggle="collapse"
href="#cleditorDiv">
<i class="icon-minus"></i>
</a>
<button class="btn btn-mini btn-danger close-box"><i
class="icon-remove"></i></button>
</div>
</li>
</ul>
</header>
<div id="cleditorDiv" class="body collapse in">
<form>
<textarea id="cleditor"></textarea>
<div class="form-actions no-margin-bottom" id="cleditorForm">
<input type="submit" value="Submit" class="btn btn-primary">
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<div class="box">
<header>
<h5>Markdown Editor</h5>
<ul class="nav nav-tabs pull-right">
<li class="active"><a href="#markdown" data-toggle="tab">Markdown</a></li>
<li><a href="#preview" data-toggle="tab">Preview</a></li>
</ul>
</header>
<div id="div-3" class="body tab-content">
<div class="tab-pane fade active in" id="markdown">
<div class="wmd-panel">
<div id="wmd-button-bar" class="btn-toolbar"></div>
<textarea class="span12 wmd-input" rows="10" name="description" id="wmd-input">
Free Admin Template with Twitter Bootstrap
------------------------------------------
### Installation
$ git clone https://github.com/onokumus/Bootstrap-Admin-Template.git yourfoldername
$ cd yourfoldername
$ git submodule init
$ git submodule update
### Demo
[http://demo.onokumus.com/metis/index.html][1]
### Licensing
Bootstrap Admin template is open-sourced software licensed under the [MIT License][2]
[1]: http://demo.onokumus.com/metis/index.html
[2]: http://opensource.org/licenses/MIT
</textarea>
</div>
</div>
<div class="tab-pane fade" id="preview">
<div id="wmd-preview" class="wmd-panel wmd-preview"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.inner -->
</div>
<!-- /.row-fluid -->
</div>
<!-- /.outer -->
</div>
<!-- /#content -->
<!-- #push do not remove -->
<div id="push"></div>
<!-- /#push -->
</div>
<!-- /#wrap -->
<div class="clearfix"></div>
<div id="footer">
<p>2013 © Metis Admin</p>
</div>
<!-- #helpModal -->
<div id="helpModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="helpModalLabel"
aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="helpModalLabel"><i class="icon-external-link"></i> Help</h3>
</div>
<div class="modal-body">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex
ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit
anim id est laborum.
</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
<!-- /#helpModal -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="assets/js/vendor/jquery-1.10.1.min.js"><\/script>')</script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script>window.jQuery.ui || document.write('<script src="assets/js/vendor/jquery-ui-1.10.0.custom.min.js"><\/script>')</script>
<script src="assets/js/vendor/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/js/lib/bootstrap-progressbar.min.js"></script>
<script type="text/javascript" src="assets/js/lib/jquery.mousewheel.js"></script>
<script type="text/javascript" src="assets/js/lib/jquery.nicescroll.min.js"></script>
<script type="text/javascript" src="assets/js/lib/prettify.js"></script>
<script type="text/javascript" src="assets/js/lib/jquery.sparkline.min.js"></script>
<script type="text/javascript" src="assets/wysihtml5/lib/js/wysihtml5-0.3.0.min.js"></script>
<script type="text/javascript" src="assets/wysihtml5/dist/bootstrap-wysihtml5-0.0.2.min.js"></script>
<script type="text/javascript" src="assets/CLEditor1_4_3/jquery.cleditor.min.js"></script>
<script type="text/javascript" src="assets/pagedown-bootstrap/Markdown.Converter.js"></script>
<script type="text/javascript" src="assets/pagedown-bootstrap/Markdown.Sanitizer.js"></script>
<script type="text/javascript" src="assets/pagedown-bootstrap/Markdown.Editor.js"></script>
<script type="text/javascript" src="assets/js/main.js"></script>
<script>
$(function() {
formWysiwyg();
});
</script>
<script type="text/javascript" src="assets/js/style-switcher.js"></script>
</body>
</html>