Ticket #9227: CKEditorControl.cs.2.patch
File CKEditorControl.cs.2.patch, 1.2 KB (added by , 11 years ago) |
---|
-
trunk/CKEditor.NET/CKEditorControl.cs
68 68 } 69 69 } 70 70 71 private bool isChanged = false;72 73 71 #endregion 74 72 75 73 #region CKEditor Other Settings Property … … 1116 1114 } 1117 1115 this.RegisterOnSubmitStatement(this.GetType(), "aspintegrator_Postback" + this.ClientID, string.Format("CKEditor_TextBoxEncode('{0}', {1}); ", this.ClientID, isInUpdatePanel ? 1 : 0)); 1118 1116 this.RegisterStartupScript(this.GetType(), "aspintegratorInitial_" + this.ClientID, script, true); 1119 if (isChanged) OnTextChanged(e);1120 1117 } 1121 1118 1122 1119 protected override void OnLoad(EventArgs e) … … 1148 1145 string postedValue = HttpUtility.HtmlDecode(postCollection[postDataKey]); 1149 1146 if (this.Text != postedValue) 1150 1147 { 1151 isChanged = true;1152 1148 this.Text = postedValue; 1153 1149 return true; 1154 1150 } … … 1156 1152 return false; 1157 1153 } 1158 1154 1159 void IPostBackDataHandler.RaisePostDataChangedEvent() { } 1155 void IPostBackDataHandler.RaisePostDataChangedEvent() 1156 { 1157 OnTextChanged(EventArgs.Empty); 1158 } 1160 1159 1161 1160 #endregion 1162 1161 }