Firefox 3.03 and contentEditable

Posted by Ash on Stack Overflow See other posts from Stack Overflow or by Ash
Published on 2008-10-18T07:44:37Z Indexed on 2010/06/10 6:52 UTC
Read the original article Hit count: 173

Filed under:
|

I'm using the contentEditable attribute on a DIV element in Firefox 3.03. Setting it to true allows me to edit the text content of the DIV, as expected.

Then, when I set contentEditable to "false", the div is no longer editable, also as expected.

However the flashing caret (text input cursor) remains visible even though the text is no longer editable. The caret is now also visible when I click on most other text in the same page, even in normal text paragraphs.

Has anyone seen this before? Is there any way to force the caret hidden?

(When I either resize the browser or click within another application, and come back, the caret magically disappears.)

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about firefox