www.jquery.comhttp://valums.com/ajax-upload/http://nyromodal.nyrodev.com/

CKEDITOR.on( 'dialogDefinition', function( ev ) {
// Take the dialog name and its definition from the event
// data.
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
// Check if the definition is from the dialog we're
// interested on (the "Link" dialog).
if ( dialogName == 'image' ) {
// Get a reference to the "Link Info" tab and the "Browse" button.
var infoTab = dialogDefinition.getContents( 'info' );
var browseButton = infoTab.get( 'browse' );
browseButton.hidden = false;
dialogDefinition.onLoad = function () {
new AjaxUpload( $(".cke_dialog_body .cke_dialog_page_contents:first .cke_dialog_ui_button:first") , {
action: 'actions.php?item=imageCKEditorUpload&action=upload',
onSubmit: function( file, extension ) {
//Loader
$.nyroModalManual({
zIndexStart: 10010,
minWidth: 100, // Minimum width
minHeight: 100, // Minimum height
closeButton: '',
showTransition: null,
content: '<div id="nyroModalLoader"></div>'
});
},
onComplete: function(file, response) {
//alert( response );
$(".cke_dialog_body .cke_dialog_page_contents:first input.cke_dialog_ui_input_text:first").val( jQuery.trim( response ) );
$.nyroModalRemove();
}
});
}
}
});
