Ticket #8381: 8381.patch

File 8381.patch, 1.3 KB (added by kaga, 9 years ago)
  • CKEditorControl.cs

     
    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;
    10311031                        string doPostBackScript = string.Empty;
    1032                         if (this.AutoPostBack) doPostBackScript = string.Format(@"CKEDITOR.instances['{0}'].on('blur', function() {{if(this.checkDirty()){{javascript:setTimeout('__doPostBack(\'{0}\',\'\')',0); }}}});", this.ClientID);
    1033                        
     1032                        if (this.AutoPostBack) doPostBackScript = string.Format(@"CKEDITOR.instances['{0}'].on('blur', function() {{if(this.checkDirty()){{this.updateElement(); javascript:setTimeout('__doPostBack(\'{0}\',\'\')',0); }}}});", this.ClientID);
     1033                        else doPostBackScript = string.Format(@"CKEDITOR.instances['{0}'].on('blur', function() {{this.updateElement(); }});", this.ClientID);
    10341034                        // Sys.Application.add_load does not work on browsers != IE
    10351035                        // http://msdn.microsoft.com/en-us/library/bb386417.aspx
    10361036                        // Check _dev/msajax.js for an uncompressed version (available in CKEditor.Net downloaded from SVN).
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy