source: trunk/examples/OneLine.html @ 1421

Last change on this file since 1421 was 1409, checked in by gogo, 20 months ago
File size: 1.3 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>Example of Easy Loading Xinha With No Configuration</title>
6
7  <script src="../XinhaEasy.js" type="text/javascript"></script>
8</head>
9
10<body>
11
12<p>
13  This demonstration shows how you only need to add one single line to your page to enable Xinha for the textareas on it, the only code added is...
14</p>
15
16<pre>
17  &lt;script src="/path/to/xinha/XinhaEasy.js" type="text/javascript"&gt;&lt;/script&gt;
18</pre>
19
20<p>and that will cause all the textareas to be converted into Xinha areas with default options and commonly useful plugins.</p>
21
22<div>
23<form onsubmit="alert(this.myTextArea.value); return false;" style="">
24
25<textarea id="myTextArea" name="myTextArea" rows="25" cols="80">
26&lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
27Aliquam et tellus vitae justo varius placerat. Suspendisse iaculis
28velit semper dolor. Donec gravida tincidunt mi. Curabitur tristique
29ante elementum turpis. Aliquam nisl. Nulla posuere neque non
30tellus. Morbi vel nibh. Cum sociis natoque penatibus et magnis dis
31parturient montes, nascetur ridiculus mus. Nam nec wisi. In wisi.
32Curabitur pharetra bibendum lectus.&lt;/p&gt;
33
34</textarea>
35<input type="submit" value="SUBMIT" />
36</form>
37</div>
38     
39</body>
40</html>
Note: See TracBrowser for help on using the repository browser.