Files
SIG/Scripts/AjaxControlToolkit/Release/HtmlEditor.ToolbarButtons.Rtl.js
rrene 927295c7ba Revert "-- corr"
This reverts commit 5315c47fcd.
2024-11-05 10:55:34 -07:00

1 line
1.1 KiB
JavaScript

Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.Rtl=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Rtl.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Rtl.prototype={callMethod:function(){var n,t,i;if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Rtl.callBaseMethod(this,"callMethod"))return!1;this._designPanel._doc.body.style.direction=this.checkState()?"":"rtl";Sys.Extended.UI.HtmlEditor.isIE||(n=this._designPanel._getSelection(),t=this._designPanel._createRange(n),this._designPanel._removeAllRanges(n),this._designPanel._selectRange(n,t),this._designPanel.focusEditor());i=this;setTimeout(function(){i._editPanel.updateToolbar()},0)},checkState:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.Rtl.callBaseMethod(this,"checkState")?this._designPanel._doc.body.style.direction&&this._designPanel._doc.body.style.direction=="rtl"?!0:!1:!1}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Rtl.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Rtl",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);