blob: 0428edf4b3503fe3d13834bfaab635887c62b89d (
plain)
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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Rich Text System Test</title>
<style type="text/css">
@import "../../../dojo/resources/dojo.css";
@import "../css/dijitTests.css";
</style>
<script type="text/javascript" src="../../../dojo/dojo.js"
djConfig="parseOnLoad: true, isDebug: true"></script>
<script type="text/javascript" src="../_testCommon.js"></script>
<script type="text/javascript" src="../../_editor/selection.js"></script>
<script type="text/javascript" src="../../_editor/RichText.js"></script>
<script language="JavaScript" type="text/javascript">
dojo.require("dijit._editor.RichText");
dojo.require("dojo.parser"); // scan page for widgets and instantiate them
</script>
</head>
<body>
<h1 class="testTitle">Rich Text Test</h1>
<div style="border: 1px dotted black;">
<h3>thud</h3>
<textarea dojoType="dijit._editor.RichText" id="editor1"
styleSheets="../../../dojo/resources/dojo.css">
<h1>header one</h1>
<ul>
<li>Right click on the client area of the page (ctrl-click for Macintosh). Menu should open.</li>
<li>Right click on each of the form controls above. Menu should open.</li>
<li>Right click near the righthand window border. Menu should open to the left of the pointer.</li>
<li>Right click near the bottom window border. Menu should open above the pointer.</li>
</ul>
</textarea>
<button onclick="dijit.byId('editor1').addStyleSheet('test_richtext.css')">add stylesheet</button>
<button onclick="dijit.byId('editor1').removeStyleSheet('test_richtext.css')">remove stylesheet</button>
</div>
<div style="border: 1px dotted black;">
<h3>blah</h3>
<div dojoType="dijit._editor.RichText"
styleSheets="../../dojo/resources/dojo.css">
<ul>
<li>Right click on the client area of the page (ctrl-click for Macintosh). Menu should open.</li>
<li>Right click on each of the form controls above. Menu should open.</li>
<li>Right click near the righthand window border. Menu should open to the left of the pointer.</li>
<li>Right click near the bottom window border. Menu should open above the pointer.</li>
</ul>
</div>
<h3>..after</h3>
</div>
</body>
</html>
|