moved method to save editor content into file to the file manager class