Large Text Area

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

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

Large Text Area

Post by JohnR » Mon Apr 02, 2018 8:24 pm

I have a 12 page document (Family Tree) I want to display in a scrollable text area. It is in Word format and I'd like to keep the indentations, etc. as it makes the tree very readable. When I copy it to the text area on the screen it only copies to page 9 and it loses the formatting. I have tried copying the last three pages but they will not paste into the text area. I have the size set to 0 (unlimited).
Any Suggestions?

User avatar
Pablo
 
Posts: 17604
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Large Text Area

Post by Pablo » Mon Apr 02, 2018 8:46 pm

Word formatting is not compatible with HTML.
If you really want to keep (almost) the same Word formatting then you can consider saving the word document as HTML file and then use an inline frame to display the text.

Be aware however that some mobile devises (like the iPhone) do not support scrollable text.

JohnR
 
 
Posts: 17
Joined: Sat Mar 03, 2018 11:44 pm

Re: Large Text Area

Post by JohnR » Mon Apr 02, 2018 11:03 pm

I did a copy in Word to select all the text, I then pasted it in my text area. As the data contains personal data I have it on a php page which is locked. If I copy it to an inline frame will I not lose that security as the inline frame is looking for a html page?

User avatar
Pablo
 
Posts: 17604
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Large Text Area

Post by Pablo » Tue Apr 03, 2018 6:08 am

I did a copy in Word to select all the text, I then pasted it in my text area.
A text area only support one font. A Text area is meant to be used as an input field for forms.
If I copy it to an inline frame will I not lose that security as the inline frame is looking for a html page?
Correct, you cannot protect data in another (non-php) page.

JohnR
 
 
Posts: 17
Joined: Sat Mar 03, 2018 11:44 pm

Re: Large Text Area

Post by JohnR » Wed Apr 04, 2018 5:53 pm

How, then, can I put a scrollable text area on a php page?

User avatar
Pablo
 
Posts: 17604
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Large Text Area

Post by Pablo » Wed Apr 04, 2018 6:40 pm

If you want to protect the content of the (Word) page then you will need to saved it in PHP format, because a HTML page cannot be protected.

After that you can (for example) add the following code at the top of the page to protect it:

Code: Select all

<?php
session_start();
if (!isset($_SESSION['username']))
{
   exit;
}
?>
Note that this is just a suggestion. I have not tested this myself.

JohnR
 
 
Posts: 17
Joined: Sat Mar 03, 2018 11:44 pm

Re: Large Text Area

Post by JohnR » Thu Apr 05, 2018 2:03 pm

Is there a better option, rather than a text area, for displaying a large amount of text in a scrollable area?

User avatar
Pablo
 
Posts: 17604
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Large Text Area

Post by Pablo » Thu Apr 05, 2018 2:19 pm

The only other (standard) solution I can think of is an inline frame.

You can also use an HTML object and set overflow to scroll, but then you will need to remove the <html>, <body> etc. tags from the code, so that requires some HTML knowledge.

JohnR
 
 
Posts: 17
Joined: Sat Mar 03, 2018 11:44 pm

Re: Large Text Area

Post by JohnR » Thu Apr 19, 2018 8:40 pm

Issue solved. However, I had to use two text areas as setting the max length to 0 still has a limitation. I'm guessing probably 4096. Anyway problem was solved by using two.

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests