Announcement

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

#1 2007-04-10 13:27:20

GrandBry
New member
Registered: 2007-04-10
Posts: 4

Limited to 1024 characters

Hi,

I am real Xinha-newbie, and I experience the following problem :

I created a PHP page with 3 Xinha editors in it.
After submitting the page (with Firefox 2.0.0.3), the content is successfully tranfered in a MySQL table.

Quite fine... BUT it is impossible to type more than 1024 characters in each editor. At the moment one type the 1025 characters, everything go freezed.

If I paste a long text in the Xinha editor, the text is accepted - I mean it is correctly transfered into the MySQL table - but it is impossible to modify it in any way.

Who has an explanation or, better, a solution ?

Offline

#2 2007-04-10 17:11:21

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

Re: Limited to 1024 characters

As I guess, you have installed the CharCounter plugin. Please try it without

Offline

#3 2007-04-10 17:21:52

GrandBry
New member
Registered: 2007-04-10
Posts: 4

Re: Limited to 1024 characters

Indeed..
I will try without it.
The problem is I find it very usefull for my application.

Thanks a lot for the information.

Offline

#4 2007-04-10 17:35:13

GrandBry
New member
Registered: 2007-04-10
Posts: 4

Re: Limited to 1024 characters

I found that line in the code of the "char-counter.js" :

  this.maxHTML = 1024;

It seems this is the maximum number of accepted characters.

Is any other value accepted ?

Offline

#5 2007-04-10 17:40:38

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

Re: Limited to 1024 characters

or get the latest version of char-counter.js from the svn, which does not contain this limit anymore by default and offers a standard Xinha.Config parameter for setting the limit
see http://xinha.python-hosting.com/ticket/1003

Offline

#6 2007-04-10 18:28:37

GrandBry
New member
Registered: 2007-04-10
Posts: 4

Re: Limited to 1024 characters

When I remove CharCounter from the plugins list, everything is absolutely OK.

But, even with the last version of CharCounter (with maxHTML' : -1) + the "fr.js" file (also the last avaible version - my application is in french) a long text  still cause the same problem with long texts (about 4000 char.)

Thank you again for your help, Ray ...

Offline

#7 2007-04-11 18:51:49

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

Re: Limited to 1024 characters

no idea why this would happen sad

Offline

Board footer

Powered by FluxBB