Moved texteditor markup to its own file