I'm trying to create an IM-style chat dialog using the HtmlEditor widget for input capture. The problem is, I don't seem to be able to get any events fired. What I want to do is trap Enter key presses to capture the content of the HTML editor, clear it, and send the captured content to the server. The 'specialkeys' event seems like the right one to hook for this, but my handler function never gets called.
Here's the test code I'm using:
var editor = new Ext.form.HtmlEditor({
id: 'chat-in',
enableAlignments: false,
enableFontSize: false,
enableLinks: false,
enableLists: false,
enableSourceEdit: false
});
Surprised this thread hasn't gotten any attention. I'm also experiencing the same issues with the HtmlEditor seemingly not firing it's events, and this is in a simplified test case to reduce other potential factors that may be causing it.