Files
2019-08-30 09:13:39 -07:00

1 line
932 B
JavaScript

Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveAlignment=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveAlignment.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveAlignment.prototype={checkState:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveAlignment.callBaseMethod(this,"checkState")?this._designPanel._textAlignState(null):!1},callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveAlignment.callBaseMethod(this,"callMethod"))return!1;var n=this._designPanel,t=this._editPanel;n._saveContent();n.MSIE_justify("left",!0);n.onContentChanged();setTimeout(function(){t.updateToolbar()},0)}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveAlignment.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveAlignment",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);