(function(A,_aoUndefined){A.extend(QMEditor.CONST.LANGUAGE.zh_CN,{FUN_PHOTO:"图片"});QMEditor.FUNCLIB.Photo=QMEditor.FUNCLIB.inheritFrom(function(_aoParamSet){this.setBindEditor(_aoParamSet.editor);var _oSelf=this,_oLang=_oSelf.getBindEditor().getLanguage();_oSelf.setId("Photo");_oSelf.setType("btn");_oSelf.setUiConfig({arrowPos:1,title:_oLang.FUN_PHOTO,label:_oLang.FUN_PHOTO});_oSelf.setfDoDefaultClick(function(_aoEvent){A.preventDefault(_aoEvent);A.stopPropagation();_oSelf.getBindEditor().requireLocalImageByClient()})},QMEditor.FUNCLIB.BASE);(function(){QMEditor.setupFunc()})()})(QMEditorAdapter);(function(A,_aoUndefined){A.extend(QMEditor.CONST.LANGUAGE.zh_CN,{FUN_SCREENSNAP:"屏幕截图"});QMEditor.FUNCLIB.ScreenSnap=QMEditor.FUNCLIB.inheritFrom(function(_aoParamSet){this.setId("ScreenSnap");this.setType("btn");this.setBindEditor(_aoParamSet.editor);this._updateUIInfo();var _oSelf=this;_oSelf.setfDoDefaultClick(function(_aoEvent){A.preventDefault(_aoEvent);A.stopPropagation();_oSelf.getBindEditor().requireScreeSnapByClient()})},QMEditor.FUNCLIB.BASE);QMEditor.FUNCLIB.ScreenSnap.prototype._updateUIInfo=function(){var _oLang=this.getBindEditor().getLanguage();this.setUiConfig({title:_oLang.FUN_SCREENSNAP,label:_oLang.FUN_SCREENSNAP})};(function(){QMEditor.setupFunc()})()})(QMEditorAdapter);(function(A,_aoUndefined){A.extend(QMEditor.CONST.LANGUAGE.zh_CN,{FUN_FONT_FORMAT:"格式",FUN_FONT_FORMAT_LABEL:"字体格式"});QMEditor.FUNCLIB.FontFormat=QMEditor.FUNCLIB.inheritFrom(function(_aoParamSet){var _oSelf=this;this.setId("FontFormat");this.setCmd("");this.setType("btn");this.setBindEditor(_aoParamSet.editor);this.setUiConfig(A.extend(this.getUiConfig(),{title:this.getBindEditor().getLanguage().FUN_FONT_FORMAT,label:this.getBindEditor().getLanguage().FUN_FONT_FORMAT_LABEL}));this.init_=function(){function _setBtnDownStatus(_self,_oDom){if(!_self._mbIsSelected){A.setClass(_oDom,_oDom.className.replace("qmEditorFontFormat_hover","")+"qmEditorFontFormat_active")}else{A.setClass(_oDom,_oDom.className.replace("qmEditorFontFormat_active",""))}}if(_oSelf._moContainer){var _oDom=this._moContainer.firstChild;if(_oDom){A.addEvent(_oDom,'mouseover',function(_aoEvent){if(!_oSelf._mbIsSelected){A.setClass(_oDom,_oDom.className.replace("qmEditorFontFormat_hover","")+"qmEditorFontFormat_hover")}});A.addEvent(_oDom,'mouseout',function(_aoEvent){if(!_oSelf._mbIsSelected){A.setClass(_oDom,_oDom.className.replace("qmEditorFontFormat_hover",""))}});A.addEvent(_oDom,'click',function(_aoEvent){_setBtnDownStatus(_oSelf,_oDom)});A.addEvent(_oDom,'keydown',function(_aoEvent){if(13==_aoEvent.keyCode){_setBtnDownStatus(_oSelf,_oDom)}})}}};this.setfDoDefaultClick(function(_aoEvent){A.preventDefault(_aoEvent);A.stopPropagation();var _bIsSelected=_oSelf._mbIsSelected,_oEditor=_oSelf.getBindEditor();_oSelf.getBindEditor().showToolBar(!_bIsSelected);_oSelf._mbIsSelected=!_bIsSelected;if(!_oEditor._mbIsFocus){_oEditor.focus()}if(external&&external.RequireFontFormat){external.RequireFontFormat()}})},QMEditor.FUNCLIB.BASE);(function(){QMEditor.setupFunc()})()})(QMEditorAdapter);