Manage sendDoc when Text changed.