UE.registerUI("seapoaaddfilelink",function(a,c){a.registerCommand(c,{execCommand:function(){}});return new UE.ui.Button({name:c,title:"\u6dfb\u52a0\u9644\u4ef6",cssRules:"background-position: -826px -77px;",onclick:function(){var b=window.frameElement.id,b=a.getOpt("fileDialog")+"\x26displaytype\x3deditfilelink\x26upfileType\x3dfile\x26selectnum\x3d30\x26inputname\x3d"+a.key+"\x26iframes_name\x3d"+b;parent.espcms_dialog(a.getOpt("fileDialog_title"),"iframe",b,"830px","540px","dialogname")}})});UE.registerUI("seapoaaddpic",function(a,c){a.registerCommand(c,{execCommand:function(){}});var b=new UE.ui.Button({name:c,title:"\u6dfb\u52a0\u56fe\u7247",cssRules:"background-position: -726px -77px;",onclick:function(){var b=window.frameElement.id,b=a.getOpt("fileDialog")+"\x26displaytype\x3deditpic\x26upfileType\x3dimage\x26selectnum\x3d50\x26inputname\x3d"+a.key+"\x26iframes_name\x3d"+b;parent.espcms_dialog(a.getOpt("picDialog_title"),"iframe",b,"830px","540px","dialogname")}});a.addListener("selectionchange",function(){var d=a.queryCommandState(c);-1==d?(b.setDisabled(!0),b.setChecked(!1)):(b.setDisabled(!1),b.setChecked(d))});return b});UE.registerUI("seapoaaddvideo",function(a,c){a.registerCommand(c,{execCommand:function(){}});return new UE.ui.Button({name:c,title:"\u6dfb\u52a0\u89c6\u9891",cssRules:"background-position: -786px -77px;",onclick:function(){var b=window.frameElement.id,b=a.getOpt("fileDialog")+"\x26displaytype\x3deditmover\x26upfileType\x3dmover\x26selectnum\x3d30\x26inputname\x3d"+a.key+"\x26iframes_name\x3d"+b;parent.espcms_dialog(a.getOpt("videoDialog_title"),"iframe",b,"830px","540px","dialogname")}})});UE.registerUI("seapoapagebreak",function(a,c){a.registerCommand(c,{execCommand:function(){}});return new UE.ui.Button({name:c,title:"\u6dfb\u52a0\u5206\u9875\u7b26",cssRules:"background-position: -460px -40px;",onclick:function(){a.execCommand("insertHtml",'\x3chr class\x3d"espcms_pagebreak"\x3e')}})});UE.registerUI("insertshare",function(a,c){var b=new UE.ui.Dialog({iframeUrl:a.ui.UEDITOR_HOME_URL+"dialogs/insertshare/insertshare.html",editor:a,name:c,title:"\u6dfb\u52a0\u5206\u4eab\u4ee3\u7801",cssRules:"width:650px;height:240px;",buttons:[{className:"edui-okbutton",label:"\u786e\u5b9a",onclick:function(){b.close(!0)}},{className:"edui-cancelbutton",label:"\u53d6\u6d88",onclick:function(){b.close(!1)}}]});return new UE.ui.Button({name:"dialogbutton"+c,title:"\u6dfb\u52a0\u5206\u4eab\u4ee3\u7801",cssRules:"background-position: -848px -77px;",onclick:function(){b.render();b.open()}})});