The KeyPress event is happening as you press each key. At that point, the text of the WebHtmlEditor is the text before the key press is processed, not after.
In your example, when you press "H", the WebHtmlEditor's value is blank. When you press "e", the editor's value is "H". At the first "l', the editor's value is "He", and so on.
You might be able to use window.setTimeout() to delay copying from the WebHtmlEditor to the text box for a few milliseconds - enough for the key press to complete being processed. I don't have an example that I can put together at the moment, but I'm hopeful this will lead you in the right direction.
Vince McDonald
Manager of Developer Support, MCP
Infragistics, Inc.
Was this post helpful? Please let me know by using the star ratings and the "Answered" button from the forum's web interface.
Need help? Find the various ways you can
ask for help from Infragistics.