the write async handler for editor almost finished