1 line
982 B
JavaScript
1 line
982 B
JavaScript
Type.registerNamespace("Sys.Extended.UI.HtmlEditor"),Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.initializeBase(this,[t]),this._activeMode=Sys.Extended.UI.HtmlEditor.ActiveModeType.Design},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.prototype={get_activeMode:function(){return this._activeMode},set_activeMode:function(t){this._activeMode=t},_onclick:function(t){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.callBaseMethod(this,"_onclick"))return!1;var e=this;return setTimeout(function(){e._editPanel.set_activeMode(e._activeMode)},0),!0},onEditPanelActivity:function(){this.setActivity(this._editPanel.get_activeMode()==this._activeMode)}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton); |