[wp-trac] [WordPress Trac] #35243: Extending the text widget to also allow visual mode

WordPress Trac noreply at wordpress.org
Thu Apr 13 00:29:53 UTC 2017


#35243: Extending the text widget to also allow visual mode
-------------------------+--------------------------------
 Reporter:  paaljoachim  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.8
Component:  Widgets      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  ui, accessibility
-------------------------+--------------------------------

Comment (by azaozz):

 Replying to [comment:45 westonruter]:
 > So you don't think that the existing Text widget should be upgraded to
 support a Visual mode?

 Uh, sorry, that's not what I meant :) Formatted text, lists, links, etc.
 as opposite to having images, galleries, videos, etc.

 On the other hand, as you mention it is probably worth exploring adding a
 new widget and even deprecating the current widget (hiding it in the UI)
 if it is not used.

 I don't think back-compat will be particularly hard, but it is true that
 many users have pasted many different "things" in the Text widget over the
 years and chances are we may break something.

 The only back-compat decision for the default Text widget would be about
 the `autop` chechbox. I think we should remove it completely. Then if
 `$instance['filter']` is set, can run the content through wpautop on
 loading and displaying, but save the <p> tags and remove
 $instance['filter']` when editing. This would make it better and simpler.

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


More information about the wp-trac mailing list