Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#101 2006-02-14 17:31:41

audg
New member
Registered: 2005-11-29
Posts: 6

Re: Newbie Guide

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

#102 2006-02-26 06:15:00

saxy
Xinha Community Member
Registered: 2006-02-07
Posts: 15

Re: Newbie Guide

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

#103 2006-03-21 20:30:16

Air
New member
From: NYC
Registered: 2005-06-15
Posts: 9

Re: Newbie Guide

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

#104 2006-03-22 01:48:59

mharrisonline
Xinha Administrator
From: Denver, Colorado
Registered: 2005-04-11
Posts: 110
Website

Re: Newbie Guide

Offline

#105 2006-03-22 14:09:17

Air
New member
From: NYC
Registered: 2005-06-15
Posts: 9

Re: Newbie Guide

Awesome, thanks!

Offline

#106 2006-03-30 05:12:16

Donny Bahama
New member
Registered: 2006-03-30
Posts: 2

Re: Newbie Guide

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

#107 2006-04-01 07:04:42

mharrisonline
Xinha Administrator
From: Denver, Colorado
Registered: 2005-04-11
Posts: 110
Website

Re: Newbie Guide

If you type < or > into the WYSIWYG view, it goes into the HTML as entities.

Offline

#108 2006-04-01 07:57:23

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Newbie Guide

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

#109 2006-04-05 09:33:43

walo_punk
Xinha Community Member
Registered: 2006-03-27
Posts: 12

Re: Newbie Guide

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

#110 2006-04-05 11:57:19

steveo125
Xinha Community Member
Registered: 2006-04-04
Posts: 24

Re: Newbie Guide

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.

walo_punk wrote:

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

#111 2006-04-05 13:22:01

walo_punk
Xinha Community Member
Registered: 2006-03-27
Posts: 12

Re: Newbie Guide

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

#112 2006-04-05 15:20:50

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Newbie Guide

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

#113 2006-04-06 19:56:41

Mediaman_12
New member
Registered: 2006-04-06
Posts: 1

Re: Newbie Guide

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

#114 2006-04-07 05:28:33

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Newbie Guide

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

#115 2006-04-07 09:48:01

walo_punk
Xinha Community Member
Registered: 2006-03-27
Posts: 12

Re: Newbie Guide

ray wrote:

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

#116 2006-04-07 13:55:08

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Newbie Guide

There's a great firefox extension called View Formatted Source which can show you a HTML view of js generated pages and the source of linked css and js files (and more).

Offline

#117 2006-04-15 12:47:43

firewood
New member
Registered: 2006-04-15
Posts: 1

Re: Newbie Guide

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

#118 2006-04-20 04:30:19

steveo125
Xinha Community Member
Registered: 2006-04-04
Posts: 24

Re: Newbie Guide

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

#119 2006-05-06 09:18:57

acmalko
New member
From: France
Registered: 2006-05-06
Posts: 3

Re: Newbie Guide

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... smile

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... wink

Last edited by acmalko (2006-05-06 09:20:15)


[url=http://www.pour-bientot.com/360353-1143609397.png]C'est imminent...[/url] tongue

Offline

#120 2006-05-07 07:01:15

KRAK_JOE
New member
Registered: 2006-05-07
Posts: 2

Re: Newbie Guide

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

#121 2006-05-07 07:36:35

acmalko
New member
From: France
Registered: 2006-05-06
Posts: 3

Re: Newbie Guide

<body onload="HTMLArea.replaceAll()">

That's nice...;)


[url=http://www.pour-bientot.com/360353-1143609397.png]C'est imminent...[/url] tongue

Offline

#122 2006-05-07 07:47:34

KRAK_JOE
New member
Registered: 2006-05-07
Posts: 2

Re: Newbie Guide

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

#123 2006-05-07 08:04:31

acmalko
New member
From: France
Registered: 2006-05-06
Posts: 3

Re: Newbie Guide

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] tongue

Offline

#124 2006-05-08 17:20:14

Ascendant
New member
Registered: 2006-05-08
Posts: 1

Re: Newbie Guide

Thanks Krak! I had been messing with this a bit and getting pretty frustrated but your version worked like a charm.

Offline

#125 2006-05-14 13:42:59

wicked
New member
Registered: 2006-05-14
Posts: 1

Re: Newbie Guide

It seems that default config.js doesn't work because of broken plugins 'SuperClean' and 'TableOperations'. Just comment them out and be happy.

Offline

Board footer

Powered by FluxBB