In-Context Editing: Learning Knowledge from Self-Induced Distributions