Ticket #7302: 7302.patch
File 7302.patch, 1.4 KB (added by , 12 years ago) |
---|
-
CKEditorControl.cs
64 64 { 65 65 get 66 66 { 67 object obj = ViewState["BasePath" + this.ClientID];67 object obj = ViewState["BasePath"]; 68 68 if (obj == null) 69 69 { 70 70 obj = System.Configuration.ConfigurationManager.AppSettings["CKeditor:BasePath"]; 71 ViewState["BasePath" + this.ClientID] = (obj == null ? "~/ckeditor" : (string)obj);71 ViewState["BasePath"] = (obj == null ? "~/ckeditor" : (string)obj); 72 72 } 73 return (string)ViewState["BasePath" + this.ClientID];73 return (string)ViewState["BasePath"]; 74 74 } 75 set { ViewState["BasePath" + this.ClientID] = value; }75 set { ViewState["BasePath"] = value; } 76 76 } 77 77 78 78 [Browsable(false)] … … 82 82 { 83 83 get 84 84 { 85 if (ViewState["CKEditorConfig" + this.ClientID] == null)86 ViewState["CKEditorConfig" + this.ClientID] = new CKEditorConfig(this.BasePath);87 return (CKEditorConfig)ViewState["CKEditorConfig" + this.ClientID];85 if (ViewState["CKEditorConfig"] == null) 86 ViewState["CKEditorConfig"] = new CKEditorConfig(this.BasePath); 87 return (CKEditorConfig)ViewState["CKEditorConfig"]; 88 88 } 89 set { ViewState["CKEditorConfig" + this.ClientID] = value; }89 set { ViewState["CKEditorConfig"] = value; } 90 90 } 91 91 92 92 [Category("CKEditor Basic Settings")]