Hi dfree79,
Has not the event to catch the dialog loaded. The open dialog method is defind in \richtexteditor\scripts\editor.js, maybe you can change the code to match your own requirement.
- this.ShowXmlDialog=function(url,option)
- {
- var dialog;
-
- if(!option)option={}
-
- var urlhandler=this.delegate(function(res,err)
- {
- if(dialog._jsml_disposed)return;
-
- if(!res)
- {
- setTimeout(function()
- {
- if(option.callback)option.callback(res,err);
- },1);
- dialog.close();
- return;
- }
-
- dialog.attach_event("closing",function()
- {
- if(option.callback)option.callback(dialog.result);
- });
-
- dialog.adjustsize();
-
- if(option.oncontentload)
- option.oncontentload(dialog);
- });
- var processinst=this.delegate(function(inst){
- if(dialog._jsml_disposed)
- return;
- dialog.append_child(inst);
- inst.invoke_recursive("editor_ready",this);
- });
-
- var HandleDialog=this.delegate(function(argdialog)
- {
- dialog=argdialog;
- if(option.ondialogload)
- option.ondialogload(dialog);
- var urlgvars={editor:this,dialog:dialog,option:option};
- var loadDelay=option.loadDelay||0;
- if(loadDelay<50)loadDelay=50;
- this._LoadXmlUrl(url,urlhandler,processinst,urlgvars,option.translator,loadDelay);
- });
-
- this._LoadDialog(option,HandleDialog);
- }
Regards,
Ken