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

WordPress Trac noreply at wordpress.org
Thu Jan 12 04:13:14 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:
-------------------------+------------------

Comment (by azaozz):

 Replying to [comment:25 westonruter]:
 > what should be done about the "Automatically add paragraphs" checkbox...

 Think this should go. Don't think we should expose a "disable wpautop"
 setting there regardless if wpautop is used or not. Generally I think it
 would be better to not use autop (keeps things faster and simpler). On the
 other hand we have a Text editor tab that will look different, so.... Not
 sure :)

 > In any case, I think it only makes sense to show the `filter` checkbox
 when the non-visual editor is shown. We could employ a back-compat
 solution whereby we introduce a new `tinymce` property for the Text widget
 which gets set to `true` when the Visual editor is shown. If the property
 is `false` (or absent) then the HTML tab should be displayed instead,
 along with the `filter` checkbox displayed. Once you select the Visual
 tab, however, then `filter` would be implied to be `true` and the checkbox
 would be hidden. This will ensure that the Visual editor is opt-in when
 upgrading WP.

 Think we can assume autop is needed for the Text editor. Also, nearly all
 "full HTML" can run through wpautop without functional change. I mean,
 even if autop is not needed and all `<p>` tags are in place, we can still
 run it through wpautop without breaking anything. This would be enough for
 back-compat imho.

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


More information about the wp-trac mailing list