-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (42 loc) · 1.09 KB
/
index.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="css/jquery.manju.css">
<style>
body { font-family: "Open Sans", Arial, sans-serif; }
.editable { border: 1px solid #ccc; margin-bottom: 1em; }
</style>
</head>
<body>
<h1>Manju Editor</h1>
<form>
<p>
<label>Editor from textarea</label><br>
<textarea class="editor"><h1>Example</h1><p>Lorem ipsum dolor sit amet.</p></textarea>
</p>
<p>
<label>Editor from div</label><br>
</p>
<div class="editable">
<img src="manju.png" width="250px">
<h1>Another Example</h1>
<p>Lorem ipsum dolor sit amet.</p>
</div>
<button type="button" id="make-editable">Edit the example above</button>
<p>
<input type="submit">
</p>
</form>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="js/jquery.manju.js"></script>
<script>
$('.editor').manju();
$('#make-editable').click(function()
{
$('.editable').manju();
});
</script>
</body>
</html>