Update text-editor.hpp