{
id : 'Upload',
hidden : true,
filebrowser : 'uploadButton',
label : editor.lang.image.upload,
elements :
[
{
type : 'file',
id : 'upload',
label : editor.lang.image.btnUpload,
style: 'height:40px',
size : 38
},
{
type : 'fileButton',
id : 'uploadButton',
filebrowser : 'info:txtUrl',
label : editor.lang.image.btnUpload,
'for' : [ 'Upload', 'upload' ]
}
]
},
elements :
[
{
type : 'iframe',
src : 'http://ckeditor.com',
width : width,
height : CKEDITOR.env.ie ? height - 10 : height ,
onContentLoad : function()
{
}
}
]
elements :
[
{
type : 'hbox',
widths : [ '100%' ],
children :
[
{
type : 'html',
id : 'pageLinkSelect',
label : 'Page Links',
style : 'width : 100%;',
html : '<iframe src="http://ckeditor.com" frameborder="0" name="iframePageLinks" id="iframePageLinks" allowtransparency="1" style="width:100%;margin:0;padding:0;"></iframe>'
}
]
}
]
Re: Replace Image Upload Tab with IFrame
The issue I am getting is when I delete the existing two elements (upload, uploadButton) a JavaScript error is thrown as soon as I click the image icon as some other code is expecting these Items to be there so I just hide them.
elements : [ { type : 'vbox', height : '250px', children : [ { type : 'html', style : 'width : 100%;', html : '<iframe src="myURL.html" frameborder="0" name="iframePageLinks" id="iframePageLinks" allowtransparency="1" style="width:100%;margin:0;padding:0;"></iframe>' } ] }, { type : 'file', id : 'upload', hidden : true, label : editor.lang.image.btnUpload, style: 'height:40px', size : 38 }, { type : 'fileButton', id : 'uploadButton', hidden : true, style : 'display:none;', filebrowser : 'info:txtUrl', label : editor.lang.image.btnUpload, 'for' : [ 'Upload', 'upload' ] } ]