tinymce.PluginManager.add("bdmap",function(a,g){var b=a.getParam("bdmap_options",{width:560,height:360,outputIframe:"./plugins/bdmap/bd.html"}),d=(tinymce.baseURL||".")+"/plugins/bdmap/map.html";window.tinymceLng="";window.tinymceLat="";window.tinymceBDZoom="";window.tinymceBDW="";window.tinymceBDH="";window.tinymceBDBoxW="";window.tinymceBDBoxH="";window.tinymceBDBoxHtml="";window.tinymceBDDH="";window.tinymceBDSF="";window.tinymceBDBgColor="";window.tinymceBDDName="";var c=function(){return a.windowManager.openUrl({title:"\u63d2\u5165\u767e\u5ea6\u5730\u56fe", size:"large",url:d,buttons:[{type:"cancel",text:"Close"},{type:"custom",text:"Save",name:"save",primary:!0}],onAction:function(e,f){switch(f.name){case "save":tinymceBDBoxHtml=tinymceBDBoxHtml.replace(/'/g,"\uffe5").replace(/"/g,"^").replace(/>/g,"\u3011").replace(/',a.insertContent(html),tinymceBDDName=tinymceBDBgColor=tinymceBDSF=tinymceBDDH=tinymceBDBoxHtml=tinymceBDBoxH=tinymceBDBoxW=tinymceBDH=tinymceBDW=tinymceBDZoom=tinymceLat=tinymceLng="",e.close()}}})};a.ui.registry.getAll().icons.bdmap|| a.ui.registry.addIcon("bdmap",''); a.ui.registry.addButton("bdmap",{icon:"bdmap",tooltip:"\u63d2\u5165\u767e\u5ea6\u5730\u56fe",onAction:function(){c()}});a.ui.registry.addMenuItem("bdmap",{text:"\u63d2\u5165\u767e\u5ea6\u5730\u56fe",onAction:function(){c()}});return{getMetadata:function(){return{name:"\u63d2\u5165\u767e\u5ea6\u5730\u56fe",url:"https://github.com/Five-great/tinymce-plugins"}}}});