Having sorted the save/restore of the caret position, now I'm facing another problem. I can't enable edit mode for the div in Firefox. Even though contentEditable should be supported, and I've seen it working on other sites, I can't get it to work.
This is the page:
http://www.softcontest.com/sharpspell/asutype.aspx
As you can see, the contentEditable attribute is set to 'true' for the div, but it's not editable in Firefox... what am I doing wrong?
This is not DOM scripting. Moving to the Javascript forum. Also, last I checked Gecko didn't support contentEditable, it supported designMode (for instance, on an iframe).
encoded
02-04-2005, 04:28 PM
It should support contentEditable... see http://mozile.mozdev.org/
Mozile appears to use the designMode property, not the contentEditable property. Here are some specs on it:
http://www.mozilla.org/editor/midas-spec.html