NEW_CKEDITOR.plugins.add("uploadfile",{requires:"uploadwidget,link",init:function(e){if(this.isSupportedEnvironment()){var i=NEW_CKEDITOR.fileTools;i.getUploadUrl(e.config)?i.addUploadWidget(e,"uploadfile",{uploadUrl:i.getUploadUrl(e.config),fileToElement:function(e){var i=new NEW_CKEDITOR.dom.element("a");return i.setText(e.name),i.setAttribute("href","#"),i},onUploaded:function(e){this.replaceWith('<a href="'+e.url+'" target="_blank">'+e.fileName+"</a>")}}):NEW_CKEDITOR.error("uploadfile-config")}},isSupportedEnvironment:function(){return NEW_CKEDITOR.plugins.clipboard.isFileApiSupported}});