/**
* axupimgs (Enhancement 1.7v) 2021-07-42
*
*
* https://github.com/Five-great/tinymce-plugins
*
* Copyright 2021, Five(Li Hailong) The Chengdu, China https://www.fivecc.cn/
*
* Licensed under MIT
*/
tinymce.PluginManager.add("axupimgs",function(a,k){window.axupimgs={};var f=tinymce.baseURL+"/plugins/axupimgs/upfiles.html";axupimgs.images_upload_handler=a.getParam("images_upload_handler",void 0,"function");axupimgs.images_upload_base_path=a.getParam("images_upload_base_path","","string");axupimgs.axupimgs_filetype=a.getParam("axupimgs_filetype",".png,.gif,.jpg,.jpeg","string");axupimgs.res=[];var e=function(){return a.windowManager.openUrl({title:"Ax\u591a\u56fe\u7247\u4e0a\u4f20",size:"large",
url:f,buttons:[{type:"cancel",text:"Close"},{type:"custom",text:"Save",name:"save",primary:!0}],onAction:function(g,b){switch(b.name){case "save":b="";for(var d=axupimgs.res,h=d.length,c=0;c');a.insertContent(b);axupimgs.res=[];g.close()}}})};a.ui.registry.getAll().icons.axupimgs||a.ui.registry.addIcon("axupimgs",'');
a.ui.registry.addButton("axupimgs",{icon:"axupimgs",tooltip:"Ax\u591a\u56fe\u7247\u4e0a\u4f20",onAction:function(){e()}});a.ui.registry.addMenuItem("axupimgs",{icon:"axupimgs",text:"\u56fe\u7247\u6279\u91cf\u4e0a\u4f20...",onAction:function(){e()}});return{getMetadata:function(){return{name:"Ax\u591a\u56fe\u7247\u4e0a\u4f20",url:"https://github.com/Five-great/tinymce-plugins"}}}});