Text editor not returning data