nsIHTMLEditor and virtual keyboard interaction

"André Pedralho" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.editor
Message-ID <[email protected]>
Hi all,

I'm working in an app that interacts with nsIHTMLEditor's using a virtual
keyboard. I'm able to write inside the editors, however, I can't write
spaces (" "). All the spaces are striped when the next character is typed. I
think it occurs because for each typed character I do a
insertHTML("theStringRepresentingTheCharacter"). So, when I type a space I
do something like insertHTML(" ").

Another issue is related to the properties like bold and italic. I can
change it selecting the text but the new characters typed aren't set
according to the previous ones. I mean, if there is a bold text written, the
characters typed just after this text don't get the correct properties (they
are shown without the bold property set).

Can you help me?

-- 
André Pedralho
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.