Page 1 of 1
document.designMode for elements
Posted: Thu Nov 01, 2007 2:09 am
by JellyFish
Is there a way I can get only one element to be in designMode instead of the whole document?
Like:
Code: Select all
document.getElementById("foo").designMode = "on";
I can't think of any other way of doing this. Is it possible?
Posted: Thu Nov 01, 2007 1:09 pm
by alex.barylski
Under IE you can use contentEditable under other browsers, I believe you are SOL.

Posted: Fri Nov 02, 2007 5:26 pm
by JellyFish
How could I get a regular block element to be editable, text wise; like a input or textarea element? No, better yet, how do I make an input automatically expand when filled with text, pixel perfect?
Posted: Fri Nov 02, 2007 10:24 pm
by Zoxive
Iframe/Frame.