[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 23:48:23 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):
(this is @dwrippe - decided to setup a WordPress.org account with my
company account rather than using my personal account)
@westonruter just caught up on the Slack convo regarding this. Thanks for
the quick and devoted conversation to an issue that is affecting an
unknown but possibly larger number of users than expected. Situations
where 3rd parties have recommended using Text widgets and scripts to add
forms (like MailChimp) is one that didn't cross my mind but will
undoubtedly affect a small handful of our clients that use MailChimp and
have forms embedded via Text widgets. As you said, it may not be proper
usage, but it's what MailChimp (and probably others) have been
recommending for years.
My 2 cents, for what it's worth - it does seem like the best solution thus
far (per the options discussed in Slack, if I'm understanding them
correctly), is to default to the Text Editor in the TinyMCE widget (which
I assume would preserve existing code?), and include a note alerting users
of the new HTML Code Widget, providing the opportunity to move existing
HTML into the new HTML Code widget (or risk losing it by switching to the
Visual editor)
I would agree that it doesn't really make sense to try and force the the
new TinyMCE Text Widget to be an HTML editor, but folks should at least
have the ability/opportunity to make the change to the "correct" usage.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40951#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list