Ticket #8154: 8154.patch

File 8154.patch, 927 bytes (added by kaga, 9 years ago)
  • CKEditorControl.cs

     
    10221022
    10231023                #region Override Method
    10241024                private string timestamp = "?t=B1GG4Z6";
    1025                 protected override void OnLoad(EventArgs e)
     1025                protected override void OnPreRender(EventArgs e)
    10261026                {
    1027                         base.OnLoad(e);
     1027                        base.OnPreRender(e);
    10281028                        this.RegisterStartupScript(this.GetType(), "CKEDITOR_BASEPATH", string.Format("window.CKEDITOR_BASEPATH = '{0}/';\n", (this.CKEditorJSFile.StartsWith("~") ? this.ResolveUrl(this.BasePath) : this.BasePath)), true);
    10291029                        this.RegisterStartupScript(this.GetType(), "ckeditor", "<script src=\"" + (this.CKEditorJSFile.StartsWith("~") ? this.ResolveUrl(this.CKEditorJSFile) : this.CKEditorJSFile) + timestamp + "\" type=\"text/javascript\"></script>", false);
    10301030                        string scriptInit = string.Empty;
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy