Preserve modification status in editor