| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 | "http://www.w3.org/TR/html4/strict.dtd"> |
| 3 | <html> |
| 4 | <head> |
| 5 | <title>Editor Smiley Test</title> |
| 6 | |
| 7 | <style type="text/css"> |
| 8 | @import "../../../dojo/resources/dojo.css"; |
| 9 | @import "../../../dijit/tests/css/dijitTests.css"; |
| 10 | @import "../../../dijit/themes/tundra/tundra.css"; |
| 11 | @import "../plugins/resources/css/Smiley.css"; |
| 12 | </style> |
| 13 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="parseOnLoad: true, isDebug: true"></script> |
| 14 | |
| 15 | <script type="text/javascript"> |
| 16 | dojo.require("dijit.Editor"); |
| 17 | dojo.require("dojo.parser"); |
| 18 | dojo.require("dojox.editor.plugins._SmileyPalette"); |
| 19 | dojo.require("dojox.editor.plugins.Smiley"); |
| 20 | dojo.require("dijit._editor.plugins.ViewSource"); |
| 21 | </script> |
| 22 | </head> |
| 23 | <body class="tundra"> |
| 24 | <br> |
| 25 | <h1 class="testTitle">Editor + Smiley Plugin</h1> |
| 26 | <div dojoType="dijit.Editor" id="editor" extraPlugins="['smiley', 'viewsource']"> |
| 27 | <p> |
| 28 | This editor is created with the 'smiley' plugin and 'viewsource' plugin. |
| 29 | Viewsource should convert the smiley images into ascii text, and vice-versa (on returning from view source to normal editing mode). |
| 30 | Also, the smiley plugin should be disabled while in view source mode. |
| 31 | </p> |
| 32 | <div> |
| 33 | <center>[:-)] Smiley Plugin is Ready !!! [:-)]</center> |
| 34 | </div> |
| 35 | <ul> |
| 36 | <li> |
| 37 | emoticonSmile: "[:-)]", |
| 38 | </li> |
| 39 | <li> |
| 40 | emoticonLaughing: "[lol]", |
| 41 | </li> |
| 42 | <li> |
| 43 | emoticonWink: "[;-)]", |
| 44 | </li> |
| 45 | <li> |
| 46 | emoticonGrin: "[:-D]", |
| 47 | </li> |
| 48 | <li> |
| 49 | emoticonCool: "[8-)]", |
| 50 | </li> |
| 51 | <li> |
| 52 | emoticonAngry: "[:-@]", |
| 53 | </li> |
| 54 | <li> |
| 55 | emoticonHalf: "[:-/]", |
| 56 | </li> |
| 57 | <li> |
| 58 | emoticonEyebrow: "[/:)]", |
| 59 | </li> |
| 60 | <li> |
| 61 | emoticonFrown: "[:-(]", |
| 62 | </li> |
| 63 | <li> |
| 64 | emoticonShy: "[:-$]", |
| 65 | </li> |
| 66 | <li> |
| 67 | emoticonGoofy: "[:-S]", |
| 68 | </li> |
| 69 | <li> |
| 70 | emoticonOops: "[:-O]", |
| 71 | </li> |
| 72 | <li> |
| 73 | emoticonTongue: "[:-P]", |
| 74 | </li> |
| 75 | <li> |
| 76 | emoticonIdea: "[(i)]", |
| 77 | </li> |
| 78 | <li> |
| 79 | emoticonYes: "[(y)]", |
| 80 | </li> |
| 81 | <li> |
| 82 | emoticonNo: "[(n)]", |
| 83 | </li> |
| 84 | <li> |
| 85 | emoticonAngel: "[0:-)]", |
| 86 | </li> |
| 87 | <li> |
| 88 | emoticonCrying: "[:'(]" |
| 89 | </li> |
| 90 | </ul> |
| 91 | </div> |
| 92 | </body> |
| 93 | </html> |