[wp-trac] [WordPress Trac] #40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code

WordPress Trac noreply at wordpress.org
Thu Jun 22 14:45:32 UTC 2017


#40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code
--------------------------+--------------------------
 Reporter:  dwrippe       |       Owner:  westonruter
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  4.8.1
Component:  Widgets       |     Version:  4.8
 Severity:  major         |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+--------------------------

Comment (by westonruter):

 Replying to [comment:69 philclothier]:
 > I can't think of any reason why this would be chosen over creating a
 new, separate TinyMCE widget. Then you get the best of both worlds rather
 than a fudged mix of the two. People who have used plain text in the old
 widget can happily upgrade to the new TinyMCE widget if they want to, and
 think "ooh shiny new widgets. This is great!". People who have used HTML
 can relax and leave it as is, without having to worry that the next update
 will break anything. Is there something else I'm missing here?

 As I tried to convey in my [comment:53 comment] above, the reason for
 upgrading the Text widget as opposed to introducing a new widget type is
 for the sake of users who aren't doing anything advanced in their widgets.
 They get the new experience by default and don't have to do any migration.
 The Text widget should have supported TinyMCE from the start when the
 widget was introduced in WordPress 2.2, so this is essentially fixing a
 long-standing deficiency.

 > For example, if the approach is to add new functionality to current
 widgets, why bother creating the new Image, Audio and Video widgets? Those
 features could have been added to the new Text widget as buttons.

 Actually there is a ticket for facilitating the addition of media to the
 TinyMCE-enhanced Text widget as well. See #40854. And there were actually
 [https://core.trac.wordpress.org/ticket/32417#comment:44 discussions]
 about whether to just re-use the Text widget and just add media to it.
 Instead we decided on separate media widgets. The new media widgets for
 images, audio, and video were created to give tailored experiences and
 shortcuts for adding specific media types. Having separate widgets for
 each media type also improves discoverability.

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


More information about the wp-trac mailing list