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