Ext has it’s up and downsides, but is indeed a great framework if you need out-of-the-box set of tools for complex layout development. However we’ve noticed that Ext’s HtmlEditor has problems with content that is pasted into the textarea (we used Firefox 2.0 on both Linux and Windows - never happened on OS X systems). After pasting some HTML the getRawValue method returns a string that doesn’t include the pasted content. This issue only occurs if after pasting the content HtmlEditor’s textarea is not modified - inserting any character (including whitespace) will prevent it.
The workaround is easy - you need to use the method syncValue. An excerpt from Ext’s documentation:
Protected method that will not generally be called directly. Syncs the contents of the editor iframe with the textarea.
Despite it being protected we can call it directly. If you’re facing the problem of missing content then use the following snippet to read data from HtmlEditor:
YourHtmlEditor.syncValue(); var content = YourHtmlEditor.getStylesheet() + "\n" + YourHtmlEditor.getRawValue();
We use it in our webmail module and it works like a charm (finally!).