This repository has been archived by the owner on Apr 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
/
04-multiple-instances.html
74 lines (67 loc) · 2.52 KB
/
04-multiple-instances.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>WYMeditor: Multiple Editor Instances</title>
<!-- build:css ../wymeditor/skins/default/skin.css -->
<link rel="stylesheet" type="text/css" href="../wymeditor/skins/default/skin.css" />
<!-- endbuild -->
</head>
<body>
<h1>WYMeditor: Multiple Editor Instances</h1>
<p><a href="http://www.wymeditor.org/">WYMeditor</a> is a web-based XHTML WYSIWYM editor.</p>
<p>You can use multiple WYMeditor instances on one page.</p>
<form method="post" action="">
<textarea class="wymeditor1"><p>I am editor 1</p></textarea>
<input type="submit" class="wymupdate" />
</form>
<br />
<form method="post" action="">
<textarea class="wymeditor1"><p>I am the second editor 1</p></textarea>
<input type="submit" class="wymupdate" />
</form>
<br />
<form method="post" action="">
<textarea class="wymeditor2"></textarea>
<input type="submit" class="wymupdate" />
</form>
<br />
<form method="post" action="">
<textarea class="wymeditor3"></textarea>
<input type="submit" class="wymupdate" />
</form>
<!--for IE8, ES5 shims are required-->
<!--[if IE 8]>
<!-- build:js vendor/es5-shim.js -->
<script type="text/javascript" src="../lib/es5-shim.js"></script>
<!-- endbuild -->
<!-- build:js vendor/es5-sham.js -->
<script type="text/javascript" src="../lib/es5-sham.js"></script>
<!-- endbuild -->
<![endif]-->
<!-- build:js vendor/jquery/jquery.js -->
<!-- endbuild -->
<!-- build:js ../wymeditor/jquery.wymeditor.js -->
<script type="text/javascript" src="../test/load-src.dev.js"></script>
<script type="text/javascript">
loadWymSrc('../');
</script>
<!-- endbuild -->
<script type="text/javascript">
$(function() {
var options1 = {}
var options2 = {
html: '<p>Hello, World! I am editor 2<\/p>'
}
var options3 = {
html: '<p>Hello, World! I am editor 3<\/p>'
}
$('.wymeditor1').wymeditor(options1);
$('.wymeditor2').wymeditor(options2);
$('.wymeditor3').wymeditor(options3);
});
</script>
</body>
</html>