Ticket #9227: CKEditorControl.cs.2.patch

File CKEditorControl.cs.2.patch, 1.2 KB (added by Marcus Lum, 10 years ago)

Patch w/ removed unnecessary isChanged variable

  • trunk/CKEditor.NET/CKEditorControl.cs

     
    6868                        }
    6969                }
    7070
    71                 private bool isChanged = false;
    72 
    7371                #endregion
    7472
    7573                #region CKEditor Other Settings Property
     
    11161114                                }
    11171115                        this.RegisterOnSubmitStatement(this.GetType(), "aspintegrator_Postback" + this.ClientID, string.Format("CKEditor_TextBoxEncode('{0}', {1}); ", this.ClientID, isInUpdatePanel ? 1 : 0));
    11181116                        this.RegisterStartupScript(this.GetType(), "aspintegratorInitial_" + this.ClientID, script, true);
    1119                         if (isChanged) OnTextChanged(e);
    11201117                }
    11211118
    11221119                protected override void OnLoad(EventArgs e)
     
    11481145                                string postedValue = HttpUtility.HtmlDecode(postCollection[postDataKey]);
    11491146                                if (this.Text != postedValue)
    11501147                                {
    1151                                         isChanged = true;
    11521148                                        this.Text = postedValue;
    11531149                                        return true;
    11541150                                }
     
    11561152                        return false;
    11571153                }
    11581154
    1159                 void IPostBackDataHandler.RaisePostDataChangedEvent() { }
     1155                void IPostBackDataHandler.RaisePostDataChangedEvent()
     1156                {
     1157                        OnTextChanged(EventArgs.Empty);
     1158                }
    11601159
    11611160                #endregion
    11621161        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy