-- corr
This commit is contained in:
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.prototype={callMethod:function(){var n,t,i;if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.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.Ltr.callBaseMethod(this,"checkState")?(this._designPanel._doc.body.style.direction&&this._designPanel._doc.body.style.direction=="rtl")?!1:!0:!1}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.callBaseMethod(this,"callMethod"))return!1;if(this._designPanel._doc.body.style.direction=this.checkState()?"rtl":"",!Sys.Extended.UI.HtmlEditor.isIE){var t=this._designPanel._getSelection(),e=this._designPanel._createRange(t);this._designPanel._removeAllRanges(t),this._designPanel._selectRange(t,e),this._designPanel.focusEditor()}var o=this;setTimeout(function(){o._editPanel.updateToolbar()},0)},checkState:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.callBaseMethod(this,"checkState")&&(!this._designPanel._doc.body.style.direction||"rtl"!=this._designPanel._doc.body.style.direction)}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
Reference in New Issue
Block a user