Text-based editor update: safer saving