-- corr
This commit is contained in:
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.prototype={canBeShown:function(){return Sys.Extended.UI.HtmlEditor.isIE},callMethod:function(){var n,t,i;if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.callBaseMethod(this,"callMethod"))return!1;n=this._designPanel;Sys.Extended.UI.HtmlEditor.isIE?(n._saveContent(),n.openWait(),setTimeout(function(){n._paste(!0);n.closeWait()},0)):(t=n._getSelection(),i=n._createRange(t),n._removeAllRanges(t),alert(String.format(Sys.Extended.UI.Resources.HtmlEditor_toolbar_button_Use_verb,Sys.Extended.UI.HtmlEditor.isSafari&&navigator.userAgent.indexOf("mac")!=-1?"Apple-V":"Ctrl-V")),n._selectRange(t,i),n.isWord=!1,n.isPlainText=!1)}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.prototype={canBeShown:function(){return Sys.Extended.UI.HtmlEditor.isIE},callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.callBaseMethod(this,"callMethod"))return!1;var t=this._designPanel;if(Sys.Extended.UI.HtmlEditor.isIE)t._saveContent(),t.openWait(),setTimeout(function(){t._paste(!0),t.closeWait()},0);else{var e=t._getSelection(),o=t._createRange(e);t._removeAllRanges(e),alert(String.format(Sys.Extended.UI.Resources.HtmlEditor_toolbar_button_Use_verb,Sys.Extended.UI.HtmlEditor.isSafari&&navigator.userAgent.indexOf("mac")!=-1?"Apple-V":"Ctrl-V")),t._selectRange(e,o),t.isWord=!1,t.isPlainText=!1}}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Reference in New Issue
Block a user