Ticket #7850: 7850.patch

File 7850.patch, 931 bytes (added by kaga, 13 years ago)
  • CKEditorControl.cs

     
    5454                        }
    5555                }
    5656
     57                private bool isChanged = false;
     58
    5759                #endregion
    5860
    5961                #region CKEditor Other Settings Property
     
    10681070                                }
    10691071                        this.RegisterOnSubmitStatement(this.GetType(), "aspintegrator_Postback" + this.ClientID, string.Format("CKEditor_TextBoxEncode('{0}', {1}); ", this.ClientID, isInUpdatePanel ? 1 : 0));
    10701072                        this.RegisterStartupScript(this.GetType(), "aspintegratorInitial_" + this.ClientID, script, true);
     1073                        if (isChanged) OnTextChanged(e);
    10711074                }
    10721075
    10731076                #endregion
     
    10901093                                string postedValue = HttpUtility.HtmlDecode(postCollection[postDataKey]);
    10911094                                if (this.Text != postedValue)
    10921095                                {
     1096                                        isChanged = true;
    10931097                                        this.Text = postedValue;
    10941098                                        return true;
    10951099                                }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy