[wp-trac] [WordPress Trac] #40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code
WordPress Trac
noreply at wordpress.org
Thu Jun 8 18:50:30 UTC 2017
#40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code
--------------------------+------------------------------
Reporter: dwrippe | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 4.8
Severity: minor | Resolution:
Keywords: close | Focuses:
--------------------------+------------------------------
Comment (by carasmo):
Many users don't add a plugin for every little thing you want to add in a
widget, so the <4.8 text widget was used to put in html for MailChimp
forms or other little things and don't check the checkbox and go! Now with
the new text widget, unless that html is completely minified, when you re-
visit the text widget to edit that instance, the result is that the html
has now added p tags around form elements and other stuff where it's not
only a validation error in some cases, the layout is entirely messed up.
This royally sucks. Anyway, for my purposes I forked the old text widget
and named it Classic Text Widget.
https://gist.github.com/carasmo/d29722a1ef7e1ebe29125661ed3690a2
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40951#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list