fix text editor serialize