| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <html> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| <title>Simple example of Xinha</title> |
| <script type="text/javascript"> |
| var _editor_url = document.location.href.replace(/examples\/Old_Newbie_Guide\/simple_example\.html.*/, '') |
| var _editor_lang = "en"; |
| </script> |
| <!-- Load up the actual editor core --> |
| <script type="text/javascript" src="../../XinhaCore.js"></script> |
| <script type="text/javascript"> |
| |
| var xinha_plugins = |
| [ |
| 'Linker', 'ContextMenu', 'FancySelects', 'TableOperations', 'ListOperations', 'PreserveSelection', 'PreserveScripts', 'WebKitResize' |
| ]; |
| |
| var xinha_editors = |
| [ |
| 'myTextArea' |
| ]; |
| |
| function xinha_init() |
| { |
| if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return; |
| |
| var xinha_config = new Xinha.Config(); |
| |
| xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); |
| |
| Xinha.startEditors(xinha_editors); |
| } |
| Xinha.addOnloadHandler(xinha_init); |
| </script> |
| |
| </head> |
| |
| <body> |
| <div> |
| <form onsubmit="alert(this.myTextArea.value); return false;" style=""> |
| |
| <textarea id="myTextArea" name="myTextArea" rows="25" cols="80"> |
| <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. |
| Aliquam et tellus vitae justo varius placerat. Suspendisse iaculis |
| velit semper dolor. Donec gravida tincidunt mi. Curabitur tristique |
| ante elementum turpis. Aliquam nisl. Nulla posuere neque non |
| tellus. Morbi vel nibh. Cum sociis natoque penatibus et magnis dis |
| parturient montes, nascetur ridiculus mus. Nam nec wisi. In wisi. |
| Curabitur pharetra bibendum lectus.</p> |
| |
| </textarea> |
| <input type="submit" value="SUBMIT" /> |
| </form> |
| </div> |
| |
| <!-- This script is used to show the rendering mode (Quirks, Standards, Almost Standards) --> |
| <script type="text/javascript" src="render-mode-developer-help.js"></script> |
| |
| </body> |
| </html> |