Ignore:
Timestamp:
09/15/11 11:40:33 (3 years ago)
Author:
wwalc
Message:

#8154 CKEditor.NET - Configurations not rendered when set by code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CKEditor.NET/trunk/CKEditor.NET/CKEditorControl.cs

    r7260 r7280  
    10231023                #region Override Method 
    10241024                private string timestamp = "?t=B1GG4Z6"; 
    1025                 protected override void OnLoad(EventArgs e) 
    1026                 { 
    1027                         base.OnLoad(e); 
     1025                protected override void OnPreRender(EventArgs e) 
     1026                { 
     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); 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy