<!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>