Text Area Size

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
JohnR
 
 
Posts: 62
Joined: Sat Mar 03, 2018 11:44 pm

Text Area Size

Post by JohnR »

One of the Text Area settings is Size, a Size of 0 is supposed to give you unlimited size,
but appears to stop at about 4092 characters. Any suggestions?
User avatar
BaconFries
 
 
Posts: 5653
Joined: Thu Aug 16, 2007 7:32 pm

Re: Text Area Size

Post by BaconFries »

I am sorry but this is not correct see the following reading from size:
https://developer.mozilla.org/en-US/doc ... input/text

size
The size attribute is a numeric value indicating how many characters wide the input field should be. The value must be a number greater than zero, and the default value is 20. Since character widths vary, this may or may not be exact and should not be relied upon to be so; the resulting input may be narrower or wider than the specified number of characters, depending on the characters and the font (font settings in use).

This does not set a limit on how many characters the user can enter into the field. It only specifies approximately how many can be seen at a time. To set an upper limit on the length of the input data, use the maxlength attribute.
JohnR
 
 
Posts: 62
Joined: Sat Mar 03, 2018 11:44 pm

Re: Text Area Size

Post by JohnR »

My apologies, when I said SIZE I should have said MAX LENGTH.
It says that '0 = unlimited', but I have not found that to be the case.
It always stops at around 4092 characters.
User avatar
Pablo
 
Posts: 22503
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Text Area Size

Post by Pablo »

Note that this is a standard HTML feature, so the functionality is implemented in the browser.
Different browsers may behave differently.
User avatar
BaconFries
 
 
Posts: 5653
Joined: Thu Aug 16, 2007 7:32 pm

Re: Text Area Size

Post by BaconFries »

As mentioned by Pablo this may simply be a browser restriction. You should also note that a textarea is generally only used in a form for a users input and I can't really imagine that they would ever have to write 4092 characters or unlimited as you wish. Also in my opinion (and that is all it is) using a textarea to be used for text (if that is what your after) with the ability to scroll with unlimited text within it would be tedious having to scroll and scroll just to read the contents would put me off reading. It might be better to break it up into several sections for easier reading.
JohnR
 
 
Posts: 62
Joined: Sat Mar 03, 2018 11:44 pm

Re: Text Area Size

Post by JohnR »

It's not just straight reading, that would indeed be very tedious.
What I'm using the area for is a Family Tree. I have broken it into several smaller areas,
and also put a link to a pdf of the full file on the page.
User avatar
BaconFries
 
 
Posts: 5653
Joined: Thu Aug 16, 2007 7:32 pm

Re: Text Area Size

Post by BaconFries »

Reading from the following Large Text Area you had already asked this. Did you try Pablo's suggestion? You could also try leaving it empty. A bit of Googling gave me this https://www.geeksforgeeks.org/html-text ... attribute/ read from Attribute Value: number: But as mentioned it could be browser related and you will have to go with the method you are allowed already using.
Post Reply