text: !function($){$(function(){if("undefined"!=typeof uploader){$("#soliloquy .drag-drop-inside").append('<div class="soliloquy-progress-bar"><div></div></div>');var o=$("#soliloquy .soliloquy-progress-bar"),i=$("#soliloquy .soliloquy-progress-bar div"),e=$("#soliloquy-output");uploader.bind("FilesAdded",function(i,e){$(o).fadeIn()}),uploader.bind("UploadProgress",function(o,e){$(i).css({width:o.total.percent+"%"})}),uploader.bind("FileUploaded",function(o,i,l){$.post(soliloquy_media_uploader.ajax,{action:"soliloquy_load_image",nonce:soliloquy_media_uploader.load_image,id:l.response,post_id:soliloquy_media_uploader.id},function(o){switch(soliloquy_media_uploader.media_position){case"before":$(e).prepend(o);break;case"after":default:$(e).append(o)}$(o).find(".wp-editor-container").each(function(o,i){var e=$(i).attr("id").split("-")[4];quicktags({id:"soliloquy-caption-"+e,buttons:"strong,em,link,ul,ol,li,close"}),QTags._buttonsInit()})},"json")}),uploader.bind("UploadComplete",function(){$(o).fadeOut()}),uploader.bind("Error",function(o,i){$("#soliloquy-upload-error").html('<div class="error fade"><p>'+i.file.name+": "+i.message+"</p></div>"),o.refresh()})}})}(jQuery);