TextEditor now also opens and load file by default, if a filePath has been forwarded in the constructor.