AbstractTextEditor improvements