Fix a bug with sorting richtextareas while in text mode