Initial text editor save function fixed