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.FontName=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.prototype={initialize:function(){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.callBaseMethod(this,"initialize")},callMethod:function(n){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.callBaseMethod(this,"callMethod"))return!1;try{var t=this._designPanel;t._execCommand("fontname",!1,n.options.item(n.selectedIndex).value)}catch(i){}},checkState:function(){var u,n,i,t,f,e,r;if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.callBaseMethod(this,"checkState"))return!1;u=this._designPanel;n=null;try{n=Function.createDelegate(u,Sys.Extended.UI.HtmlEditor._queryCommandValue)("fontname")}catch(o){}if(u._FontNotSet||n&&n.length!=0||(n=Sys.Extended.UI.HtmlEditor.getStyle(u._doc.body,"font-family")),i=this._select,t=0,n&&n.length>0){for(f=n.toLowerCase().split(",")[0].replace(/^(['"])/,"").replace(/(['"])$/,""),t=0;t<i.options.length;t++)if(e=i.options.item(t).value.toLowerCase().split(",")[0],e==f)break;if(t==i.options.length)try{r=document.createElement("OPTION");r.value=n.replace(/^(['"])/,"").replace(/(['"])$/,"");r.text=n.split(",")[0].replace(/^(['"])/,"").replace(/(['"])$/,"");i.add(r,Sys.Extended.UI.HtmlEditor.isIE?t:null);$addHandler(r,"click",this._onclick_option$delegate)}catch(o){t=0}}i.selectedIndex=t}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton);
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.prototype={initialize:function(){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.callBaseMethod(this,"initialize")},callMethod:function(t,e){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.callBaseMethod(this,"callMethod"))return!1;try{var o=this._designPanel;o._execCommand("fontname",!1,t.options.item(t.selectedIndex).value)}catch(t){}},checkState:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.callBaseMethod(this,"checkState"))return!1;var t=this._designPanel,e=null;try{e=Function.createDelegate(t,Sys.Extended.UI.HtmlEditor._queryCommandValue)("fontname")}catch(t){}t._FontNotSet||e&&0!=e.length||(e=Sys.Extended.UI.HtmlEditor.getStyle(t._doc.body,"font-family"));var o=this._select,n=0;if(e&&e.length>0){var l=e.toLowerCase().split(",")[0].replace(/^(['"])/,"").replace(/(['"])$/,"");for(n=0;n<o.options.length;n++){var a=o.options.item(n).value.toLowerCase().split(",")[0];if(a==l)break}if(n==o.options.length)try{var d=document.createElement("OPTION");d.value=e.replace(/^(['"])/,"").replace(/(['"])$/,""),d.text=e.split(",")[0].replace(/^(['"])/,"").replace(/(['"])$/,""),o.add(d,Sys.Extended.UI.HtmlEditor.isIE?n:null),$addHandler(d,"click",this._onclick_option$delegate)}catch(t){n=0}}o.selectedIndex=n}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton);