This commit is contained in:
2024-11-05 10:47:20 -07:00
parent c801b1ff51
commit 5315c47fcd
276 changed files with 2990 additions and 6370 deletions

View File

@@ -1 +1 @@
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.prototype={callMethod:function(){var n,r,t,i,u;if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.callBaseMethod(this,"callMethod"))return!1;n=this._designPanel;try{return(n._saveContent(),r=n._doc.createElement("div"),r.innerHTML="<hr>",t=r.firstChild,i=n._getSafePlace(),!i)?void 0:(u=i.parentNode,u.insertBefore(t,i),u.removeChild(i),t=t.nextSibling?t.nextSibling:t,Sys.Extended.UI.HtmlEditor._setCursor(t,n),setTimeout(function(){n.onContentChanged();n._editPanel.updateToolbar()},0),n.focusEditor(),!0)}catch(f){}}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.callBaseMethod(this,"callMethod"))return!1;var t=this._designPanel;try{t._saveContent();var e=t._doc.createElement("div");e.innerHTML="<hr>";var o=e.firstChild,n=t._getSafePlace();if(!n)return;var r=n.parentNode;return r.insertBefore(o,n),r.removeChild(n),o=o.nextSibling?o.nextSibling:o,Sys.Extended.UI.HtmlEditor._setCursor(o,t),setTimeout(function(){t.onContentChanged(),t._editPanel.updateToolbar()},0),t.focusEditor(),!0}catch(t){}}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);