As usual, If you want to Add TXT record for your domain to your on CPanel, then by default it isn’t possible to add. Let’s see how looks it when your settings is on default. Below I have added a screenshot of my CPanel Zone Editor page when it was on default mode.

Zone Editor Cpanel
It seems doesn’t have an option to add TXT record. Originally, cpanel don’t allow to cpanel customers to add TXT record with general Zone Editor authorisation. It only accept to add A, CNAME & MX record. To allow authorisation to add TXT record and some other options, you should go to enable Advanced DNS Zone Editor for the user’s feature list. The instructions for enable Advanced DNS Zone Editor have to go to root WHM >> Feature Manager >> Edit Default Feature list and enable Advanced DNS Zone Editor as I do, follow my below my screenshots.
1. Go WHM and Login by using root and password for successful login.
2. After successfully login in WHM page in left top side search box, here type “Feature Manager”
Now you will see same page of my screenshot that I have added on below.

Feature Manager Cpanel
3. Now Click on Edit, you will see edit option under default option, would be better if you are following my screenshot. When you have clicked on edit bottom, now you will forwarded to a new page thats the list of feature interface. See below my screenshot and proceed it.

List of Feature on whm
4. Now you have to rolling down by using mouse to find Zone Editor (AAAA, CAA, DMARC, SRV, TXT). You will see this option on end of this page. Now click to mark and hit on save to saved it, now wait few moments for success this action. After few moments you will see a message like:

Zone Editor New Interface
Keywords
How to Enable TXT Record Edition in CPanel from WHM
add txt record cpanel
cpanel dns records
dns txt record not showing
add text record to dns