1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
6 <title>Rich Text System Test</title>
8 <style type="text/css">
9 @import "../../../dojo/resources/dojo.css";
10 @import "../css/dijitTests.css";
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>
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
26 <h1 class="testTitle">Rich Text Test</h1>
28 <div style="border: 1px dotted black;">
30 <textarea dojoType="dijit._editor.RichText" id="editor1"
31 styleSheets="../../../dojo/resources/dojo.css">
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>
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>
44 <div style="border: 1px dotted black;">
46 <div dojoType="dijit._editor.RichText"
47 styleSheets="../../dojo/resources/dojo.css">
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>