Refactor trextswap
Rename EditorBox to EditBox
Refactor again to EditorState