Monday, February 28, 2011

Issue with RichTextArea in Firefox (spell checker)

Hello,

I'm using a com.google.gwt.user.client.ui.RichTextArea where I've
attached a key handler. When pressing "space" (on non IE-browsers) I'm
adding " " (as html) instead of letting the default behavior.

richTextArea.getFormatter().insertHTML(" ");

I need this because sometimes other characters are added by default.
Anyway the reason is not important.

The problem is that after executing this line in Firefox, the
paragraph that I was editing looses the spell checker. This means that
if any word was already highlighted as wrong by FF, it is shown as
correct now (no underline, nothing). The only word in the paragraph
analyzed by the spell checker is the last word (the one just before
pressing space). All other paragraphs are OK, they continue to show
all misspelled words.
This area is opened in a org.gwt.mosaic.ui.client.WindowPanel panel,
and if I resize it, the area is redrawn and the spell checker works on
all text (until I edit it, and add html again).

Any ideas?
Thank you.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment