Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Edit scratchpad from within the scratchpad

by BigLug (Chaplain)
on May 12, 2004 at 22:58 UTC ( [id://352913]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Edit scratchpad from within the scratchpad
in thread Edit scratchpad from within the scratchpad

tye:
I'm a bit tired of the update window when I'm not updating
I can't agree more! Now that I can edit a root node without changing the URL or clicking anywhere, the page is a whole lot longer (my CSS has a large textarea as when I'm editing I like to see a fair bit of what I'm typing)

... moments later, inspiration strikes ...

While I'm typing this it has just occurred to me, I'm quite happy to have textareas on the pages after all. (Sorry tye)

Now, this doesn't work in all browsers (IE for mac doesn't work; Safari does). But if you set your textarea CSS as below, textareas are tiny until focused. Once focused they 'spring open'. If your browser supports it.

textarea { width: 400px; height: 20px; } textarea:focus { height: 400px; }
Of course you can set your sizes to whatever you want, just experiment.

So, having done that, I can now just click into textareas I want to edit. When I don't want to edit I don't focus them and so they don't spring open.

"Get real! This is a discussion group, not a helpdesk. You post something, we discuss its implications. If the discussion happens to answer a question you've asked, that's incidental." -- nobull@mail.com in clpm

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-29 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found