В tiny_mce_popup.js к бади призяывается событие онлоад
.....
_onDOMLoaded:function()
{
var b=tinyMCEPopup,d=document.title,e,c,a;
if(b.domLoaded)
{
return
}
b.domLoaded=1;
if (b.features.translate_i18n!==false)
{
c=document.body.innerHTML;if(tinymce.isIE)
{
c=c.replace(/ (value|title|alt)=([^"][^\s>]+)/gi,' $1="$2"')
}document.dir=b.editor.getParam("directionality"," ");
if((a=b.editor.translate(c))&&a!=c){document.body. innerHTML=a}
if((a=b.editor.translate(d))&&a!=d){document.title =d=a}
}
document.body.style.display="";
if(tinymce.isIE)
{
document.attachEvent("onmouseup",tinyMCEPopup._res toreSelection);
b.dom.add(b.dom.select("head")[0],"base",{target:"_self"})}
b.restoreSelection();b.resizeToInnerSize();
if(!b.isWindow)
{
b.editor.windowManager.setTitle(window,d)
}
else{window.focus()}
if(!tinymce.isIE&&!b.isWindow)
{
tinymce.dom.Event._add(document,"focus",function()
{
b.editor.windowManager.focus(b.id)})
}
tinymce.each(b.dom.select("select"),function(f){f. onkeydown=tinyMCEPopup._accessHandler});
tinymce.each(b.listeners,function(f){f.func.call(f .scope,b.editor)});
if(b.getWindowArg("mce_auto_focus",true))
{
window.focus();tinymce.each(document.forms,functio n(g)
{
tinymce.each(g.elements,function(f){if(b.dom.hasCl ass(f,"mceFocus")&&!f.disabled){f.focus();return false}})
})
}
document.onkeyup=tinyMCEPopup._closeWinKeyHandler
}
|