id:'textUrl',
type:'select',
label:'',
items:[
['Google','http://www.google.co.uk/intl/en_uk/images/logo.gif'],
['Yahoo','http://l.yimg.com/a/i/ww/met/yahoo_logo_us_061509.png']
],
onChange:function(){
var t=CKEDITOR.document.getById('previewImage');
var q=this.getDialog();
r=this.getValue();
if(r.length>0){
q=this.getDialog();
var s=q.originalElement;
s.setCustomData('isReady','false');
var t=CKEDITOR.document.getById('ImagePreviewLoader');
if(t){
t.setStyle('display','');
}
s.on('load',o,q);
s.on('error',p,q);
s.on('abort',p,q);
s.setAttribute('src',r);
q.preview.setAttribute('src',r);
h(q);
}
},
Fri, 10/16/2009 - 14:01
#1

Re: Replacing the image URL field with a drop down