Do you know how to make a DIV editable with JavaScript (cross-browser) ?
Something similar to a rich textarea, but that uses an editable iframe. I need something similar for a DIV.
I don't want to use a replacement textbox.
Do you know how to make a DIV editable with JavaScript (cross-browser) ?
Something similar to a rich textarea, but that uses an editable iframe. I need something similar for a DIV.
I don't want to use a replacement textbox.
How about his:
Make a hidden "textArea" , and upon selecting(clicking or Hover) the div , hide the Div and Show the textArea .
I found out how.
You use the contentEditable property of the DOMElement, like so
<div onClick="this.contentEditable='true';">
lorem ipsum dolor lorem ipsum dolorlorem ipsum dolor
</div>
One reason to use a div would be to get around a textarea's 64k limit. So simply showing/hiding a textarea would defeat the purpose...