54 lines
1.5 KiB
HTML
Executable File
54 lines
1.5 KiB
HTML
Executable File
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<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\/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'
|
|
];
|
|
var xinha_editors =
|
|
[
|
|
'myTextArea',
|
|
'anotherOne'
|
|
];
|
|
|
|
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>
|
|
|
|
<form onsubmit="alert(this.myTextArea.value); return false;">
|
|
<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>
|
|
</form>
|
|
</body>
|
|
</html> |