[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:46:05 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 westonruter):

 I was chatting with @matveb about this dilemma and he suggests that we
 disable the new TinyMCE experience for the Text widget if previously the
 autop checkbox had been unchecked, that is if the instance has `filter` as
 `false`. When user adds a new Text widget and then selects the Text tab to
 paste in HTML, they can get an admin pointer as noted in #40907 to direct
 them to add an HTML Code widget instead.

 The one hesitation I have about this solution is that the “Automatically
 add paragraphs” checkbox was ''unchecked'' by default. So that could mean
 that there are many users who have Text widgets which have plain text that
 would lack the new visual editor when they didn't have multiple
 paragraphs.

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


More information about the wp-trac mailing list