[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 17:11:49 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:                |     Focuses:
--------------------------+------------------------------

Comment (by dwrippe):

 Maybe the best way to handle the situation is just not to default the new
 Text Widget to the Visual Editor. Or at least not default existing Text
 Widgets to the new Visual editor (and only newly placed Text widgets would
 default to that). If the widget defaults to the Text Editor, the existing
 code (in theory) shouldn't be modified, and people would be more apt to
 notice content being stripped out when they manually flip between the two.

 I would agree the TinyMCE is probably rightly stripping out extraneous
 tags (the same happens in the Post editor), but considering that for the
 last many, many years we could put HTML in a Text Widget and nothing would
 mess with it, this could potentially (and unknowingly) affect a lot of
 people.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40951#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list