source: trunk/examples/simple_example.html @ 1406

Last change on this file since 1406 was 1406, checked in by gogo, 19 months ago

A little quick tidy up of examples.

  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 1.8 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5<title>Simple example of Xinha</title>
6<script type="text/javascript">
7  var _editor_url  = document.location.href.replace(/examples\/simple_example\.html.*/, '')
8  var _editor_lang = "en";
9</script>
10<!-- Load up the actual editor core -->
11<script type="text/javascript" src="../XinhaCore.js"></script>
12<script type="text/javascript">
13
14var xinha_plugins =
15[
16 'Linker', 'ContextMenu', 'FancySelects', 'TableOperations', 'ListOperations', 'PreserveSelection', 'PreserveScripts', 'WebKitResize'
17];
18
19var xinha_editors =
20[
21  'myTextArea'
22];
23
24function xinha_init()
25{
26  if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
27
28  var xinha_config = new Xinha.Config();
29 
30  xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
31
32  Xinha.startEditors(xinha_editors);
33}
34Xinha.addOnloadHandler(xinha_init);
35</script>
36
37</head>
38
39<body>
40<div>
41<form onsubmit="alert(this.myTextArea.value); return false;" style="">
42
43<textarea id="myTextArea" name="myTextArea" rows="25" cols="80">
44&lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
45Aliquam et tellus vitae justo varius placerat. Suspendisse iaculis
46velit semper dolor. Donec gravida tincidunt mi. Curabitur tristique
47ante elementum turpis. Aliquam nisl. Nulla posuere neque non
48tellus. Morbi vel nibh. Cum sociis natoque penatibus et magnis dis
49parturient montes, nascetur ridiculus mus. Nam nec wisi. In wisi.
50Curabitur pharetra bibendum lectus.&lt;/p&gt;
51
52</textarea>
53<input type="submit" value="SUBMIT" />
54</form>
55</div>
56
57  <!-- This script is used to show the rendering mode (Quirks, Standards, Almost Standards) -->
58  <script type="text/javascript" src="render-mode-developer-help.js"></script>
59     
60</body>
61</html>
Note: See TracBrowser for help on using the repository browser.