Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<textarea contenteditable>?

Status
Not open for further replies.

stranger123

Programmer
Apr 16, 2006
76
GB
Hi,

I want <textarea contenteditable>Something</textarea> but it wasn't correct.
I know we can do <DIV contenteditable>, but don't know what will happen if the browser not support "contenteditable".
Any idea?
 
Content within textarea is editable by default, so doing:
Code:
<textarea name="myTextArea">Edit Me!</textarea>
will work in all browsers.
 
Vragabond,
Thank you.
Perhaps I didn't explain clearly.

If right click a picture in a website and select "copy", then right click in <DIV contenteditable> Somehting </DIV>, we can select "paste" and paste the picture onto <DIV contenteditable> Somehting </DIV>. However, we cannot paste the picture onto <textarea contenteditable> Something </textarea> in such a way.
So, "contenteditable" in a DIV means something more than "editable" in a textarea?
 
Do you think we can let <DIV contenteditable> change to <textarea> when the browsew not regnize "contenteditable" in <DIV>?
 
BillyRayPreachersSon,

Thank you. I will ask this in Javascript.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top