2150 |
mathias |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
|
2 |
"http://www.w3.org/TR/html4/strict.dtd">
|
|
|
3 |
<html>
|
|
|
4 |
<head>
|
|
|
5 |
|
|
|
6 |
<title>Rich Text System Test</title>
|
|
|
7 |
|
|
|
8 |
<style type="text/css">
|
|
|
9 |
@import "../../../dojo/resources/dojo.css";
|
|
|
10 |
@import "../css/dijitTests.css";
|
|
|
11 |
</style>
|
|
|
12 |
<script type="text/javascript" src="../../../dojo/dojo.js"
|
|
|
13 |
djConfig="parseOnLoad: true, isDebug: true"></script>
|
|
|
14 |
<script type="text/javascript" src="../_testCommon.js"></script>
|
|
|
15 |
|
|
|
16 |
<script type="text/javascript" src="../../_editor/selection.js"></script>
|
|
|
17 |
<script type="text/javascript" src="../../_editor/RichText.js"></script>
|
|
|
18 |
<script language="JavaScript" type="text/javascript">
|
|
|
19 |
dojo.require("dijit._editor.RichText");
|
|
|
20 |
dojo.require("dojo.parser"); // scan page for widgets and instantiate them
|
|
|
21 |
</script>
|
|
|
22 |
|
|
|
23 |
</head>
|
|
|
24 |
<body>
|
|
|
25 |
|
|
|
26 |
<h1 class="testTitle">Rich Text Test</h1>
|
|
|
27 |
|
|
|
28 |
<div style="border: 1px dotted black;">
|
|
|
29 |
<h3>thud</h3>
|
|
|
30 |
<textarea dojoType="dijit._editor.RichText" id="editor1"
|
|
|
31 |
styleSheets="../../../dojo/resources/dojo.css">
|
|
|
32 |
<h1>header one</h1>
|
|
|
33 |
<ul>
|
|
|
34 |
<li>Right click on the client area of the page (ctrl-click for Macintosh). Menu should open.</li>
|
|
|
35 |
<li>Right click on each of the form controls above. Menu should open.</li>
|
|
|
36 |
<li>Right click near the righthand window border. Menu should open to the left of the pointer.</li>
|
|
|
37 |
<li>Right click near the bottom window border. Menu should open above the pointer.</li>
|
|
|
38 |
</ul>
|
|
|
39 |
</textarea>
|
|
|
40 |
<button onclick="dijit.byId('editor1').addStyleSheet('test_richtext.css')">add stylesheet</button>
|
|
|
41 |
<button onclick="dijit.byId('editor1').removeStyleSheet('test_richtext.css')">remove stylesheet</button>
|
|
|
42 |
</div>
|
|
|
43 |
|
|
|
44 |
<div style="border: 1px dotted black;">
|
|
|
45 |
<h3>blah</h3>
|
|
|
46 |
<div dojoType="dijit._editor.RichText"
|
|
|
47 |
styleSheets="../../dojo/resources/dojo.css">
|
|
|
48 |
<ul>
|
|
|
49 |
<li>Right click on the client area of the page (ctrl-click for Macintosh). Menu should open.</li>
|
|
|
50 |
<li>Right click on each of the form controls above. Menu should open.</li>
|
|
|
51 |
<li>Right click near the righthand window border. Menu should open to the left of the pointer.</li>
|
|
|
52 |
<li>Right click near the bottom window border. Menu should open above the pointer.</li>
|
|
|
53 |
</ul>
|
|
|
54 |
</div>
|
|
|
55 |
<h3>..after</h3>
|
|
|
56 |
</div>
|
|
|
57 |
|
|
|
58 |
</body>
|
|
|
59 |
</html>
|