[wp-trac] [WordPress Trac] #40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code
WordPress Trac
noreply at wordpress.org
Fri Jun 9 00:05:01 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: 4.8.1
Component: Widgets | Version: 4.8
Severity: minor | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+--------------------
Comment (by synavista):
In 4.7.x, having the autop checkbox ticked doesn't really prevent people
from embedding forms via <script> tags into the Text Editor, and
extraneous inline elements such as empty <a> or <span> tags still flow
through to the front end. At least, the MailChimp form I just tried in
4.7.x, pasted into a Text Widget with the autop checkbox ticked came
through just fine on the front end, as did the example scenario from my
initial ticket description.
That being said, I also have no problem pasting MailChimp form code into
the new TinyMCE Text Widget and flipping between the Visual and Text
editors, an issue @carasmo was seeing but I'm unable to replicate.
If the status of the autop checkbox was used to determine what editor in
the TinyMCE Text Widget was displayed, users may still find themselves in
a situation where they had unrecoverable content.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40951#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list