Ticket #8608: 8608.patch
File 8608.patch, 1.2 KB (added by , 11 years ago) |
---|
-
CKEditorControl.cs
90 90 get 91 91 { 92 92 if (ViewState["CKEditorConfig"] == null) 93 ViewState["CKEditorConfig"] = new CKEditorConfig(this.BasePath );93 ViewState["CKEditorConfig"] = new CKEditorConfig(this.BasePath.StartsWith("~") ? this.ResolveUrl(this.BasePath) : this.BasePath); 94 94 return (CKEditorConfig)ViewState["CKEditorConfig"]; 95 95 } 96 96 set { ViewState["CKEditorConfig"] = value; } … … 1015 1015 public CKEditorControl() 1016 1016 { 1017 1017 base.TextMode = TextBoxMode.MultiLine; 1018 this.config = new CKEditorConfig(this.BasePath.StartsWith("~") ? this.ResolveUrl(this.BasePath) : this.BasePath);1019 1018 } 1020 1019 1021 1020 #endregion … … 1076 1075 if (isChanged) OnTextChanged(e); 1077 1076 } 1078 1077 1078 protected override void OnLoad(EventArgs e) 1079 { 1080 base.OnLoad(e); 1081 if (ViewState["CKEditorConfig"] != null) 1082 this.config = (CKEditorConfig)ViewState["CKEditorConfig"]; 1083 else 1084 this.config = new CKEditorConfig(this.BasePath.StartsWith("~") ? this.ResolveUrl(this.BasePath) : this.BasePath); 1085 } 1086 1079 1087 #endregion 1080 1088 1081 1089 #region Private Method