setTimeout(function(){
if($('#yourIframeID')){
$('#yourIframeID')[0].contentWindow.document.body.onfocus = function(){
if(Ext.getCmp('yourComboBoxID')){
if(Ext.getCmp('yourComboBoxID').isExpanded){
Ext.getCmp('yourComboBoxID').collapse()
}
}
}
}
},500);
I had the same problem and I thought it would be much harder to get it to work, but this is what I used. You should put this in a function and set this function in tinyMCE.init () configuration as
oninit : yourFunctionName
And we need setTimeout (), because in chrome (and probably in other browsers except Firefox), because it fires before the iframe is displayed. I tried with 0 timeout but did not work.
source
share