Ticket #8608: 8608.patch

File 8608.patch, 1.2 KB (added by kaga, 12 years ago)
  • CKEditorControl.cs

     
    9090                        get
    9191                        {
    9292                                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);
    9494                                return (CKEditorConfig)ViewState["CKEditorConfig"];
    9595                        }
    9696                        set { ViewState["CKEditorConfig"] = value; }
     
    10151015                public CKEditorControl()
    10161016                {
    10171017                        base.TextMode = TextBoxMode.MultiLine;
    1018                         this.config = new CKEditorConfig(this.BasePath.StartsWith("~") ? this.ResolveUrl(this.BasePath) : this.BasePath);
    10191018                }
    10201019
    10211020                #endregion
     
    10761075                        if (isChanged) OnTextChanged(e);
    10771076                }
    10781077
     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
    10791087                #endregion
    10801088
    10811089                #region Private Method
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy