Re: nsIHTMLEditor and virtual keyboard interaction
"André Pedralho" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.editor |
|---|---|
| Message-ID | <[email protected]> |
Thank you! It's working fine now! On 4/24/07, Neil <[email protected]> wrote: > > André Pedralho wrote: > > > 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). > > Use nsIPlaintextEditor::InsertText instead. (In C++ you will need > separate pointers for each interface.) > > -- > Warning: May contain traces of nuts. > _______________________________________________ > dev-tech-editor mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-editor > -- André Pedralho