You are not logged in.
Pages: 1
So here is what I have
Xinha is installed in a directory called xinha.
I followed the newbie guide, and couldn't get it to work. Xinha is just not showing up. The samples work but not my tests.
Here is my code...
<html>
<head>
<title></title>
<script type="text/javascript">
_editor_url = "xinha/"
_editor_lang = "en";
_editor_skin = "silva";
</script>
<script type="text/javascript" src="xinha/XinhaCore.js"></script>
<script type="text/javascript">
xinha_editors = null;
xinha_init = null;
xinha_config = null;
xinha_plugins = null;
// This contains the names of textareas we will make into Xinha editors
xinha_init = xinha_init ? xinha_init : function()
{
xinha_plugins = xinha_plugins ? xinha_plugins :
[
'CharacterMap', 'SpellChecker', 'Linker'
];
// THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING :)
if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
xinha_editors = xinha_editors ? xinha_editors :
[
'myTextArea'
];
xinha_config = xinha_config ? xinha_config : new Xinha.Config();
xinha_config.fullPage = true;
xinha_config.CharacterMap.mode = 'panel';
xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
Xinha.startEditors(xinha_editors);
window.onload = null;
}
window.onload = xinha_init;
</script>
</head>
<body>
<form name="Edituser" action="" target="_self" method="post">
<textarea id="newbiearea1" name="newbiearea1" rows="10" cols="50" style="width: 100%">
<ul>
<li>setting goals and tracking progress,</li>
<li>the teaching of etiquette and values;</li>
<li>directing service work;</li>
<li>providing opportunities for students to be heads of crews;</li>
<li>mentoring other students;</li>
<li>public speaking opportunities on a frequent basis;</li>
<li>presenting research findings to authentic audiences;</li>
<li>encouraging patriotism;</li>
<li>studying great leaders throughout history; living books;</li>
<li>participating in student government resembling a representative form of government;</li>
<li>leading conferences with parents;</li>
<li>helping each student find opportunities to share their opinions, be spokespeople, and lead groups;</li>
<li>exposure to passionate leaders in history;</li>
<li>exposure to excellent leaders from the community;</li>
<li>regular study of great speeches throughout history;</li>
<li>staff modeling proper leadership;</li>
<li>learning to be a good follower</li>
</ul>
</textarea>
<input type="submit" class="button" name="submit" value="Submit"><input type="hidden" name="id" value="">
</form>
</body>
</html>
Thanks for your help...
Offline
Pages: 1