Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

RE:(4) fixing what textareas do to input

by swiftone (Curate)
on Jun 05, 2000 at 22:17 UTC ( [id://16469]=note: print w/replies, xml ) Need Help??


in reply to RE: RE:(2) fixing what textareas do to input
in thread fixing what textareas do to input

True, but in some situations it isn't good. For example, I use Textreas to allow editing of text snippets on our page. Since the user will be cut-and-pasting text, I don't want to rely on the linebreaks in it.

Replies are listed 'Best First'.
RE: RE:(4) fixing what textareas do to input
by httptech (Chaplain) on Jun 05, 2000 at 22:21 UTC
    But then aren't you ending up with 2 sets of linebreaks? The linebreaks added by the user's paste job, and then the linebreaks added by the browser?

    So you end up output like:

    Here is a line break where my browser decided to break the line, but I thought it would actually be here.
      No, only because I strip any linebreaks not associated with HTML tags. Think of it like the non-standard WRAP=VIRTUAL tag, which shows the word wrapping without putting it in.

      I'd LOVE for that to become standard. Let the user pick where the linebreaks are, and not have to scroll one massive line all the time to edit.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://16469]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 22:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found