Hello @davidovic123,
Thank you for choosing our product and writing in!
There are multiple reasons for this issue. Please navigate to Users > Profile and make sure the ” Disable the visual editor when writing” is not checked.
Here’s a screenshot for your reference: https://share.getcloudapp.com/rRuOOjeG
If that didn’t help, try to edit your wp-config.php file and omit the following code if existed:
define( ‘DISALLOW_FILE_EDIT’, true );
Hope this helps.
Let us know how it goes.
Hi @mahdimoafi,
Thanks for your reply.
The ”Disable the visual editor when writing” is already unchecked.
Even more, I added define( ‘DISALLOW_FILE_EDIT’, true ); to wp-config ; but I get this warning message:
Warning: Use of undefined constant ‘DISALLOW_FILE_EDIT’ – assumed ‘‘DISALLOW_FILE_EDIT’’ (this will throw an Error in a future version of PHP) in… (wp-config.php path)
The situation still the same, the text editor doesn’t keep changes.
Hi @davidovic123,
Thank you for your reply.
You shouldn’t have added the define( ‘DISALLOW_FILE_EDIT’, true ); to the wp-config.php file.
You should have removed or commented it.
Can you please try again and see if it helps?
Hi @mahdimoafi,
Thanks for your reply.
As I mentioned before, ”Disable the visual editor when writing” is already unchecked.
And,
define( ‘DISALLOW_FILE_EDIT’, true );
doesn’t exist in wp-config
I want to note that other plugins, like coupon reminder, tracking number…, which also use the WordPress TinyMCE editor keep the HTML tags when saving!
But “WooCommerce Cart Abandonment Recovery” unfortunately does not!
Thank you,
Hi @davidovic123,
From WordPress version 3.2, the text editor removed the line break i.e <br> and other HTML tags. But we found one article for you. It will help you to add the line break tags in the text editor.
– https://blog.templatetoaster.com/wordpress-line-break-not-working/
Hope it helps.
Hi @cartflows,
It helps.
Thank you for this resource, it solves the problem.
Best regards,
Hello @davidovic123,
Awesome! I am happy to hear the issue is resolved.
Please feel free to get in touch if you need help with anything.
Have a great day ahead.