@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveLink=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveLink.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveLink.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveLink.callBaseMethod(this,"callMethod"))return!1;var t=this._designPanel,e=t._getSelection(),o=(t._createRange(e),Sys.Extended.UI.HtmlEditor.getSelParent(t));for(3==o.nodeType&&(o=o.parentNode);o&&Sys.Extended.UI.HtmlEditor.isStyleTag(o.tagName)&&"A"!=o.tagName.toUpperCase();)o=o.parentNode;if(o&&"A"==o.tagName.toUpperCase()){t._saveContent();for(var n=o.firstChild;o.firstChild;)o.parentNode.insertBefore(o.firstChild,o);o.parentNode.removeChild(o),n&&Sys.Extended.UI.HtmlEditor._setCursor(n,t),setTimeout(function(){t._editPanel.updateToolbar()},0),t.onContentChanged()}}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveLink.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveLink",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveLink=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveLink.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveLink.prototype={callMethod:function(){var i;if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveLink.callBaseMethod(this,"callMethod"))return!1;var t=this._designPanel,r=t._getSelection(),u=t._createRange(r),n=Sys.Extended.UI.HtmlEditor.getSelParent(t);for(n.nodeType==3&&(n=n.parentNode);n&&Sys.Extended.UI.HtmlEditor.isStyleTag(n.tagName)&&n.tagName.toUpperCase()!="A";)n=n.parentNode;if(n&&n.tagName.toUpperCase()=="A"){for(t._saveContent(),i=n.firstChild;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n);i&&Sys.Extended.UI.HtmlEditor._setCursor(i,t);setTimeout(function(){t._editPanel.updateToolbar()},0);t.onContentChanged()}}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveLink.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveLink",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Reference in New Issue
Block a user