diff options
author | 2008-11-13 09:49:11 +0000 | |
---|---|---|
committer | 2008-11-13 09:49:11 +0000 | |
commit | e44a7e37b6c7b5961adaffc62b9042b8d442938e (patch) | |
tree | 95b67c356e93163467db2451f2b8cce84ed5d582 /includes/js/dijit/tests/_editor/test_RichText.html | |
parent | a62b9742ee5e28bcec6872d88f50f25b820914f6 (diff) | |
download | scuttle-e44a7e37b6c7b5961adaffc62b9042b8d442938e.tar.gz scuttle-e44a7e37b6c7b5961adaffc62b9042b8d442938e.zip |
New feature: basic Ajax suggestion for tags and implementation of Dojo toolkit
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@151 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dijit/tests/_editor/test_RichText.html')
-rw-r--r-- | includes/js/dijit/tests/_editor/test_RichText.html | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/includes/js/dijit/tests/_editor/test_RichText.html b/includes/js/dijit/tests/_editor/test_RichText.html new file mode 100644 index 0000000..0428edf --- /dev/null +++ b/includes/js/dijit/tests/_editor/test_RichText.html @@ -0,0 +1,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> |