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

WordPress Trac noreply at wordpress.org
Wed Jan 11 20:08:21 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:
-------------------------+------------------
Changes (by westonruter):

 * keywords:   => needs-patch
 * milestone:  Future Release => 4.8


Comment:

 @azaozz also I understand that without #35760 it isn't currently feasible
 to make the full featured WP TinyMCE editor available in the Text widget
 since it currently requires `wp_editor()` to be called in PHP for each
 instance and new editors can't be dynamically built for new instances of
 Text widgets that are added. Is that accurate? If the Editor was not the
 full editor but rather a vanilla TinyMCE editor, then it seems it would be
 more feasible to dynamically instantiate new ones in JS however.

 Nevertheless, one key feature of the Text widget visual editor would be
 the WP Links interface which isn't part of vanilla TinyMCE.

 Do you or @iseulde have recommendations on the JS code required to
 dynamically create new basic editors as mocked by @melchoyce?

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


More information about the wp-trac mailing list