Topic: Make DIV text editable (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Phoenix |
posted 02-19-2004 04:42
How do I turn the contents of a DIV tag into an editable region with CSS? |
Maniac (V) Inmate From: under the bed |
posted 02-19-2004 05:37
You don't. |
Bipolar (III) Inmate From: Phoenix |
posted 02-19-2004 06:26
Hmmm... I was pretty sure there was a way to make the DIV element editable. Maybe it is a DHTML effect? |
Paranoid (IV) Inmate From: France |
posted 02-19-2004 06:27
If you don't mind the format of your content and don't want a WYSIWYG editor, you can simply pick the innerTEXT or innerHTML of your DIV and insert it in a textarea and send it back to the DIV when you're done. |
Paranoid (IV) Inmate From: Sthlm, Sweden |
posted 02-19-2004 09:57
poi is absolutely right, here is an example of the IE MSHTML component/javascript thing. code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
Bipolar (III) Inmate From: Phoenix |
posted 02-19-2004 15:33
Beautiful... thanks guys! I will surely put this to a test sometime today. |
Obsessive-Compulsive (I) Inmate From: SoCal |
posted 10-23-2004 01:10
Once the <div contenteditable> is filled in on the borwser, how is the content of the div saved on the back end? Does the content of the div have to be put into an <input> object and the form posted? |
Maniac (V) Inmate From: Sthlm, Sweden |
posted 10-23-2004 14:34
Thats a perfectly reasonable thing to do, probably the easiest too |