notify we have edited the text, but only if the editor control has been created
This commit is contained in:
parent
0868648961
commit
e989cbd881
@ -68,6 +68,11 @@ namespace UniversalEditor.Editors.Text.Plain
|
||||
private void txt_Changed(object sender, EventArgs e)
|
||||
{
|
||||
PlainTextObjectModel om = (this.ObjectModel as PlainTextObjectModel);
|
||||
if (om == null)
|
||||
return;
|
||||
|
||||
if (!IsCreated)
|
||||
return;
|
||||
|
||||
if (!working)
|
||||
{
|
||||
@ -75,9 +80,11 @@ namespace UniversalEditor.Editors.Text.Plain
|
||||
{
|
||||
BeginEdit();
|
||||
}
|
||||
|
||||
om.Text = txt.Text;
|
||||
|
||||
txt.ResetChangedByUser();
|
||||
|
||||
OnDocumentEdited(EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user