You are not logged in.
I'm willing to do it--it's just that having to include "dummy" text areas in each form (to account for textareas on other forms on other pages) seems rather a manual, error-prone way of going about it, and I assumed there was a better way or that I was missing something.
An unrelated-I believe-question: Yesterday everything was working fine. Today, when I load a page that contains a text area called by Xinha, I receive an Unknown Runtime Error. Any ideas where to start?
Thanks.
Offline
Xinha works fine, is a very helpfull tool. But 1 question I have: After installing xinha, neither the back button of the browser, nor history.back in javascript works. Did I click the back button, then xinha is visible, but I can not work with it. Is there a work a round?
Thanks.
Offline
This seems like a silly question but I haven't been able to find it anywhere. Is there a log of each revision? For example, last week I was playing with Rev 471, today I noticed it's at 477 - what changed? Also, with each nightly update should we replace all the files or just the htmlarea.js and any plugins? Sorry if this was covered elsewhere - I couldn't find it!
Thanks!
Offline
The revision log is at:
Offline
Awesome, thanks!
Offline
I followed the Newbie Guide, and all the wysiwyg tools show up, but...
1. When I go to edit the text, it doesn't show up as formatted text, but instead, all the wiki markup is still there. (Not a big deal - I figure Xinha doesn't know how to convert wiki markup into wysiwyg code but...)
2. When I save, instead of seeing the newly saved, formatted text, I see a ton of HTML tags. (And when I view source, I see a bunch of < and > symbols.)
Offline
If you type < or > into the WYSIWYG view, it goes into the HTML as entities.
Offline
If you see the actual html tags it sounds like this masking of the < or > 's happens two times. If understand that you are using xinha in a wiki context (as you mentioned the wiki formating). It is normal in this context that the server encodes the html special characters, just because it is supposed to receive the formatting information in wiki syntax, not html.
Offline
HELLO
hi i´ve installed xinha and work perfect on my PC but when i upload it to the server xinha not works http://www.pixelartsstudios.com/xinha/e … xample.php
i can´t undertand why
plase helpme
thanks
Offline
Nope, your example doesn't work for me either, I can see you've changed the files to php - what else have you changed?
If you turn off all the plugins then it loads - I suggest you look at any changes you've made to those for some clues.
HELLO
hi i´ve installed xinha and work perfect on my PC but when i upload it to the server xinha not works http://www.pixelartsstudios.com/xinha/e … xample.php
i can´t undertand why
plase helpme
thanks
Offline
MANY THANKS i´ve changed the extension to try if the html extension is not supported i use xinha on mi local apache server and works, i cant understand the problem
Offline
Several plugins you specify to use are not found:
Not Found
The requested URL /xinha/plugins/TableOperations/table-operations.js was not found on this server.
The requested URL /xinha/plugins/SuperClean/super-clean.js was not found on this server.
The requested URL /xinha/plugins/Stylist/stylist.js was not found on this server.
The requested URL /xinha/plugins/SpellChecker/spell-checker.js was not found on this server.
The requested URL /xinha/plugins/ListType/list-type.js was not found on this server.
If you uploaded xinha completely they should be there, please check that
Offline
I did have the old HTMLArea working, but ran into bugs so I am switching to this, but it seams lots more complex and I can't get it to work (cant we have a 'simple working version' bundled with the download?) the site isn't live so I can't give any links, but here is my code.
this in my HTML header
<script type="text/javascript">
_editor_url = "http://192.68.1.102/pag-site/cp/xinha/";
_editor_lang = "en";
</script>
<script type="text/javascript" src="xinha/htmlarea.js"></script>
<script type="text/javascript" src="my_config.js"></script>
this is the config
xinha_editors = null;
xinha_init = null;
xinha_config = null;
xinha_plugins = null;
xinha_init = xinha_init ? xinha_init : function()
{
xinha_plugins = xinha_plugins ? xinha_plugins :
[
'ContextMenu',
'ListType',
'SpellChecker',
'Stylist',
'SuperClean',
];
if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return;
xinha_editors = xinha_editors ? xinha_editors :
[
'content'
];
xinha_config = new HTMLArea.Config();;
xinha_config.width = 640;
xinha_config.height = 420;
xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins);
HTMLArea.startEditors(xinha_editors);
window.onload = null;
}
window.onload = xinha_init;
// window.onunload = HTMLArea.collectGarbageForIE;
I have tried the 'my_config.js' both in an out of the main 'xinha' dir (renamed from xinha-nightly that you download) and I keep getting a 'ContextMenu' is undefined error in IE6 if I comment out the plugins, it just doesn't work, no errors.
Offline
Try
<script type="text/javascript">
_editor_url = "/pag-site/cp/xinha/";
_editor_lang = "en";
</script>
<script type="text/javascript" src="/pag-site/cp/xinha/htmlarea.js"></script>
<script type="text/javascript" src="/pag-site/cp/xinha/my_config.js"></script>
I assume that http://192.68.1.102 is the the server where your page is running on, otherwise it wont work
Offline
Several plugins you specify to use are not found:
Not Found
The requested URL /xinha/plugins/TableOperations/table-operations.js was not found on this server.
The requested URL /xinha/plugins/SuperClean/super-clean.js was not found on this server.
The requested URL /xinha/plugins/Stylist/stylist.js was not found on this server.
The requested URL /xinha/plugins/SpellChecker/spell-checker.js was not found on this server.
The requested URL /xinha/plugins/ListType/list-type.js was not found on this server.If you uploaded xinha completely they should be there, please check that
THKANK U THAT WAS THE PROBLEM, HOW DID U GET THE ERROR???
Offline
I have tried for two hours to get xinha installed, to no avail.
Here is the code I am using at the top of the page:
<script type="text/javascript">
_editor_url = "http://www.my_site.com/xinha/";
_editor_lang = "en";
</script>
<script type="text/javascript" src="http://www.my_site.com/xinha/htmlarea.js"></script>
<script type="text/javascript" src="http://www.my_site.com/xinha/my_config.js"></script>
The xinha directory is immediately under public_html/ as indicated by the URL's.
I used absolute URL's to avoid all ambiguity; however, I have tried multiple versions of relative URL's too, with no better luck that way.
All my textareas are labelled with the appropriate id values and registered per the instructions in my_config.js file (no comma after the last entry in the array).
I have successfully tested the example in the examples directory. Everything there comes out fine.
In other words, it should work, but it doesn't. Will someone please offer a suggestion.
By the way, with a similar configuration, I got TinyMCE to work on the first try.
Offline
Have you got any more information on how it doesn't work?? Like do you get a 404 page not found error?
Or does the page load, but the textarea, not get replaced with the editor? etc.
Are you using IE or FF? and if so do you get any javascript errors? Firefox has a useable Javascript debugger which gives helpful error pointers (most of the time).
Offline
Hello everybody...
First, all apologises for my english, I'm french...
I actually work on a phpbb forum.
I have used newbie guide with the latest version: xinha-nightly.
I can't see the options.
You can test yourself my code here : http://acmalko.free.fr/vrac/home_config.html
With Internet Explorer 6, there is an error while loading (in french, sorry...)
Ligne 120
Car 15
Erreur: Identificateur, chaine ou nombre attendu
Code: 0
URL: http://acmalko.free.fr/vrac/home_config.html
With Opera 8.54 that I prefer, I have a javascript error:
http://acmalko.free.fr/vrac/xinha/plugi … r-clean.js
Event thread: BeforeExternalScript
Syntax error while loading: line 119 of linked script at http://acmalko.free.fr/vrac/xinha/plugi … r-clean.js :
}
----------------^
So, I understand that there is an issue with superclean.js
As I'm juste a newbie for syntax, I prefer forget this option (that I don't know at all what it is for) and correct my home_config.html.
In that case, without "superclean" it's OK with IE and there's no more error: I can use the xinha's option...
But with Opera, no way, even if there's no more javascript error.
1-What is "superclean" ?
2-Vhat about the compatibility with Opera and how can I resolve my problem ?
Thank you for helping me...
Last edited by acmalko (2006-05-06 09:20:15)
[url=http://www.pour-bientot.com/360353-1143609397.png]C'est imminent...[/url]
Offline
I know there must be ppl out there reading this page thinking WHY CAN'T I GET THIS TO LOAD???? Becasue I have spent the last wek doing the same downloading it every day to no avail....here's a hint
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
_editor_url = "/xinha/" // (preferably absolute) URL (including trailing slash) where Xinha is installed
_editor_lang = "en"; // And the language we need to use in the editor.
</script>
<script type="text/javascript" src="/xinha/htmlarea.js"></script>
<script language="JavaScript" 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()
{
/** STEP 1 ***************************************************************
* First, what are the plugins you will be using in the editors on this
* page. List all the plugins you will need, even if not all the editors
* will use all the plugins.
*
* The list of plugins below is a good starting point, but if you prefer
* a must simpler editor to start with then you can use the following
*
* xinha_plugins = xinha_plugins ? xinha_plugins : [ ];
*
* which will load no extra plugins at all.
************************************************************************/
xinha_plugins = xinha_plugins ? xinha_plugins :
[
'CharacterMap',
'ContextMenu',
'FullScreen',
'ListType',
'SpellChecker',
'Stylist',
'SuperClean',
'TableOperations'
];
// THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING :)
if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return;
/** STEP 2 ***************************************************************
* Now, what are the names of the textareas you will be turning into
* editors?
************************************************************************/
xinha_editors = xinha_editors ? xinha_editors :
[
'TuxCreate1',
'anotherOne'
];
/** STEP 3 ***************************************************************
* We create a default configuration to be used by all the editors.
* If you wish to configure some of the editors differently this will be
* done in step 5.
*
* If you want to modify the default config you might do something like this.
*
* xinha_config = new HTMLArea.Config();
* xinha_config.width = '640px';
* xinha_config.height = '420px';
*
*************************************************************************/
xinha_config = xinha_config ? xinha_config() : new HTMLArea.Config();
/** STEP 4 ***************************************************************
* We first create editors for the textareas.
*
* You can do this in two ways, either
*
* xinha_editors = HTMLArea.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['myTextArea'].registerPlugins(['Stylist','FullScreen']);
* xinha_editors['anotherOne'].registerPlugins(['CSS','SuperClean']);
*
* if you want to use a different set of plugins for one or more of the
* editors.
************************************************************************/
xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins);
/** STEP 5 ***************************************************************
* If you want to change the configuration variables of any of the
* editors, this is the place to do that, for example you might want to
* change the width and height of one of the editors, like this...
*
* xinha_editors.myTextArea.config.width = '640px';
* xinha_editors.myTextArea.config.height = '480px';
*
************************************************************************/
xinha_editors.myTextArea.config.width = '640px';
xinha_editors.myTextArea.config.height = '480px';
/** STEP 6 ***************************************************************
* Finally we "start" the editors, this turns the textareas into
* Xinha editors.
************************************************************************/
HTMLArea.startEditors(xinha_editors);
}
window.onload = xinha_init;
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body onload="HTMLArea.replaceAll()">
<textarea id="TuxCreate1" name="TuxCreate1" rows="10" cols="50" style="width: 100%"></textarea>
</body>
</html>
save this a editor.html or php just outside the root of your xinha dir so if you site is http://me.com and xina is http://me.com/xinha then this file needs to b called http://me.com/editor.php
u can c this working @ http://insides-out.no-ip.info/editor.php
Last edited by KRAK_JOE (2006-05-07 07:21:13)
Offline
<body onload="HTMLArea.replaceAll()">
That's nice...;)
[url=http://www.pour-bientot.com/360353-1143609397.png]C'est imminent...[/url]
Offline
I could have just posted that, but hate explaining myself....and you worked it out easy right?
This was the ONLY way out of 1000 that i could make it actually load at all.....
Offline
I'm not sure of the spirit of your message because I read this forum with a dictionnary...:)
I hope it was cool...
I think I have answered too soon. I'm not sure seeing the difference and what means <body onload="HTMLArea.replaceAll()">
I always have the sames javascript's messages with Opera 8.54 but it's OK with IE.
Tux Create
http://insides-out.no-ip.info/editor.php
Event thread: load
Error:
name: TypeError
message: Statement on line 6709: Could not convert undefined or null to object
Backtrace:
Line 6709 of linked script http://insides-out.no-ip.info/xinha/htmlarea.js
if (! this.config.showLoading || ! document.getElementById("loading_sub_" + this._textArea.name))
Line 1418 of linked script http://insides-out.no-ip.info/xinha/htmlarea.js
this.setLoadingMessage("Generate Xinha object");
Line 848 of linked script http://insides-out.no-ip.info/xinha/htmlarea.js
for (var i = tas.length;i > 0;new HTMLArea(tas[(--i)], config).generate())
Line 1 of script
HTMLArea.replaceAll();
At unknown location
[statement source code not available]http://insides-out.no-ip.info/xinha/plu … r-clean.js
Unknown context
Syntax error while loading: line 119 of linked script at http://insides-out.no-ip.info/xinha/plu … r-clean.js :
}
----------------^
Last edited by acmalko (2006-05-07 08:40:30)
[url=http://www.pour-bientot.com/360353-1143609397.png]C'est imminent...[/url]
Offline
Thanks Krak! I had been messing with this a bit and getting pretty frustrated but your version worked like a charm.
Offline
It seems that default config.js doesn't work because of broken plugins 'SuperClean' and 'TableOperations'. Just comment them out and be happy.
Offline