We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

3.1.x - Unable to edit previously poplulated RTE field as empty

Development and Programming

Richard Whitmer's avatar
Richard Whitmer
96 posts
9 years ago
Richard Whitmer's avatar Richard Whitmer

I’m wondering if anyone else is experiencing this problem with editing RTE fields in EE3?

Specifically, once an entry has been saved to an RTE field, the field will hold on to that copy if you try to delete the copy in it and won’t let you save it blank.

For example:

I save an entry with an RTE field containing some copy.

Later when I edit the entry, emptying out the copy in that field and leaving it blank, but when I submit the entry and open it again, the original value remains.

I can edit the copy and the edit is saved so long as there is copy still in the field, but if I try to edit the field and submit it empty, whatever the value was when I first opened the entry for editing remains.

The field is not required and I don’t get any error messages – I just can’t submit a new, blank value.

I’m first experienced this on an 3.1.2 but it’s still an issue after updating to 3.1.3.

Attaching a screenshot of the field settings.

Also, it seems like this was an issue for another user way back on 2.6 but that post didn’t yield any info. https://ellislab.com/forums/viewthread/238041/

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

I can confirm the behavior and am looking into a fix. I’ll keep you posted when I’ve got a solution.

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

I have a solution!

In system/ee/EllisLab/Addons/rte/libraries/Rte_lib.php replace line 488 with

return '';

I’ll make sure this fix makes it into the next release.

       
Richard Whitmer's avatar
Richard Whitmer
96 posts
9 years ago
Richard Whitmer's avatar Richard Whitmer

Thanks, Seth.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.