@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.prototype={initialize:function(){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.callBaseMethod(this,"initialize")},callMethod:function(t,e){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.callBaseMethod(this,"callMethod"))return!1;try{var o=this._designPanel;o._execCommand("FontSize",!1,Sys.Extended.UI.HtmlEditor.fontSizeSeek(t.options.item(t.selectedIndex).value))}catch(t){}},checkState:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.callBaseMethod(this,"checkState"))return!1;var t=this._designPanel,e=null,o=this._select.id;try{e=Function.createDelegate(t,Sys.Extended.UI.HtmlEditor._queryCommandValue)("fontsize",o)}catch(t){}e&&(e=e.toString()),t._FontNotSet||e&&0!=e.length||(e=Sys.Extended.UI.HtmlEditor.getStyle(t._doc.body,"font-size"),e=Sys.Extended.UI.HtmlEditor._TryTransformFromPxToPt(e,this,o));try{var n=this._select,i=0;if(e&&e.length>0){var d=e.toLowerCase().split(",")[0];for(i=0;i<n.options.length;i++){var l=Sys.Extended.UI.HtmlEditor.fontSizeSeek(n.options.item(i).value.toLowerCase().split(",")[0]);if(l==d)break}if(i==n.options.length)try{var s=document.createElement("OPTION");s.value=e,s.text=e,n.add(s,Sys.Extended.UI.HtmlEditor.isIE?i:null),$addHandler(s,"click",this._onclick_option$delegate)}catch(t){i=0}}n.selectedIndex=i}catch(t){}}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.prototype={initialize:function(){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.callBaseMethod(this,"initialize")},callMethod:function(n){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.callBaseMethod(this,"callMethod"))return!1;try{var t=this._designPanel;t._execCommand("FontSize",!1,Sys.Extended.UI.HtmlEditor.fontSizeSeek(n.options.item(n.selectedIndex).value))}catch(i){}},checkState:function(){var i,t,e,o,r;if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.callBaseMethod(this,"checkState"))return!1;var u=this._designPanel,n=null,f=this._select.id;try{n=Function.createDelegate(u,Sys.Extended.UI.HtmlEditor._queryCommandValue)("fontsize",f)}catch(s){}n&&(n=n.toString());u._FontNotSet||n&&n.length!=0||(n=Sys.Extended.UI.HtmlEditor.getStyle(u._doc.body,"font-size"),n=Sys.Extended.UI.HtmlEditor._TryTransformFromPxToPt(n,this,f));try{if(i=this._select,t=0,n&&n.length>0){for(e=n.toLowerCase().split(",")[0],t=0;t<i.options.length;t++)if(o=Sys.Extended.UI.HtmlEditor.fontSizeSeek(i.options.item(t).value.toLowerCase().split(",")[0]),o==e)break;if(t==i.options.length)try{r=document.createElement("OPTION");r.value=n;r.text=n;i.add(r,Sys.Extended.UI.HtmlEditor.isIE?t:null);$addHandler(r,"click",this._onclick_option$delegate)}catch(s){t=0}}i.selectedIndex=t}catch(s){}}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton);
|
||||
Reference in New Issue
Block a user