Disabling Firefox spell checking in iframe-based text editors

Posted by Piotr Sobczyk on Stack Overflow See other posts from Stack Overflow or by Piotr Sobczyk
Published on 2012-09-12T15:36:39Z Indexed on 2012/09/12 15:37 UTC
Read the original article Hit count: 289

Filed under:
|
|
|
|

There is a lot of info around about how to disable spell checking in html textarea element by using spellcheck='false'. However to have text area with more advanced capabilities, one must use iframe with designMode = "on" (see e.g. this page, this is a way that RichTextArea is implemented in GWT) and I couldn't find a single post on that topic.

It turns out that Firefox detects such advanced text areas and enables its spell checking in them. You can see it live by visiting this page from Firefox and entering some content to text field. If you inspect this code, you'll see no textarea tag, yet FF spell checking is still active. The only way I managed to disable it was setting designMode to off but... I need it to be on.

The question is: Is there any possibility to disable spell checking in such cases, without setting designMode = "off"?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html