Thanks, I was looking for it everywhere!!
The code posted as a workaroud wasn't working for me, but i´ve managed to get it working making these little changes:
Its high time for You to do this because clearly You have not tested this combination (tabs + rich text) at all.
In the mean time here is workaround:
dojo.require('ibm.xsp.widget.layout.xspCKEditor');
dojo.require('dijit._Widget');//included this line
/**
* Solves k.contentWindow is null error in Rich text CKEditor.
* Problem was appearing when user done partial refresh on tab with rich text field.
*/
ibm.xsp.widget.layout.CKEditorWrapper.prototype.destroy = function(){
console.log('Destroying rt editor ' + this.id);
// destroys ckeditor but without html update
CKEDITOR.instances[this.domNode.id].destroy(true/*No editor html update*/);
// delegate rest of the action to dijit
dijit._WidgetBase.prototype.destroy.apply(this, arguments);//Removed this line...
dijit._Widget.prototype.destroy.apply(this, arguments);//Replaced with this one
}