Upgrade to Xinha 0.931. Xinha has been optimized for size and dozens of issues have been closed
out since the last upgrade . Add Firefox and Xinha buttons to main page to show our support.
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
-- of the file to remove the auto-example-generating code and allow for the
|
||||
-- use of the file as a boilerplate.
|
||||
--
|
||||
-- $HeadURL: svn://gogo@xinha.gogo.co.nz/repository/trunk/examples/full_example-body.html $
|
||||
-- $LastChangedDate: 2005-03-05 21:42:32 +1300 (Sat, 05 Mar 2005) $
|
||||
-- $LastChangedRevision: 35 $
|
||||
-- $LastChangedBy: gogo $
|
||||
-- $HeadURL: http://svn.xinha.python-hosting.com/trunk/examples/testbed.html $
|
||||
-- $LastChangedDate: 2007-01-19 23:24:36 +0100 (Fr, 19 Jan 2007) $
|
||||
-- $LastChangedRevision: 677 $
|
||||
-- $LastChangedBy: ray $
|
||||
--------------------------------------------------------------------------->
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
@@ -54,10 +54,10 @@
|
||||
|
||||
xinha_plugins = xinha_plugins ? xinha_plugins :
|
||||
[
|
||||
|
||||
'CharacterMap', 'SpellChecker', 'Linker'
|
||||
];
|
||||
// THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING :)
|
||||
if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return;
|
||||
if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
|
||||
|
||||
/** STEP 2 ***************************************************************
|
||||
* Now, what are the names of the textareas you will be turning into
|
||||
@@ -76,13 +76,15 @@
|
||||
*
|
||||
* If you want to modify the default config you might do something like this.
|
||||
*
|
||||
* xinha_config = new HTMLArea.Config();
|
||||
* xinha_config = new Xinha.Config();
|
||||
* xinha_config.width = 640;
|
||||
* xinha_config.height = 420;
|
||||
*
|
||||
*************************************************************************/
|
||||
|
||||
xinha_config = xinha_config ? xinha_config : new HTMLArea.Config();
|
||||
xinha_config = xinha_config ? xinha_config : new Xinha.Config();
|
||||
xinha_config.fullPage = true;
|
||||
xinha_config.CharacterMap.mode = 'panel';
|
||||
/*
|
||||
// We can load an external stylesheet like this - NOTE : YOU MUST GIVE AN ABSOLUTE URL
|
||||
// otherwise it won't work!
|
||||
@@ -100,11 +102,11 @@
|
||||
*
|
||||
* You can do this in two ways, either
|
||||
*
|
||||
* xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins);
|
||||
* xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
|
||||
*
|
||||
* if you want all the editor objects to use the same set of plugins, OR;
|
||||
*
|
||||
* xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config);
|
||||
* xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config);
|
||||
* xinha_editors['myTextArea'].registerPlugins(['Stylist','FullScreen']);
|
||||
* xinha_editors['anotherOne'].registerPlugins(['CSS','SuperClean']);
|
||||
*
|
||||
@@ -112,7 +114,7 @@
|
||||
* editors.
|
||||
************************************************************************/
|
||||
|
||||
xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins);
|
||||
xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
|
||||
|
||||
/** STEP 4 ***************************************************************
|
||||
* If you want to change the configuration variables of any of the
|
||||
@@ -130,12 +132,12 @@
|
||||
* Xinha editors.
|
||||
************************************************************************/
|
||||
|
||||
HTMLArea.startEditors(xinha_editors);
|
||||
Xinha.startEditors(xinha_editors);
|
||||
window.onload = null;
|
||||
}
|
||||
|
||||
window.onload = xinha_init;
|
||||
// window.onunload = HTMLArea.collectGarbageForIE;
|
||||
// window.onunload = Xinha.collectGarbageForIE;
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@@ -143,6 +145,19 @@
|
||||
|
||||
<form action="javascript:var x = document.getElementById('editors_here');alert(x.myTextArea.value);" id="editors_here" onsubmit="alert(this.myTextArea.value);">
|
||||
<textarea id="myTextArea" name="myTextArea" style="width:100%;height:320px;">
|
||||
<html>
|
||||
<head>
|
||||
<title>Hello</title>
|
||||
<style type="text/css">
|
||||
li { color:red; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<img src="http://xinha.python-hosting.com/trac/logo.jpg" usemap="#m1">
|
||||
<map name="m1">
|
||||
<area shape="rect" coords="137,101,255,124" href="http://www.mydomain.com">
|
||||
</map>
|
||||
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
|
||||
Aliquam et tellus vitae justo varius placerat. Suspendisse iaculis
|
||||
@@ -161,6 +176,8 @@
|
||||
<li> Quisque sed augue quis nunc laoreet volutpat.</li>
|
||||
<li> Nunc sit amet metus in tortor semper mattis. </li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
</textarea>
|
||||
|
||||
<input type="submit" /> <input type="reset" />
|
||||
|
||||
Reference in New Issue
Block a user