[wp-trac] [WordPress Trac] #35760: Provide API for TinyMCE editor to be dynamically instantiated via JS

WordPress Trac noreply at wordpress.org
Thu Jan 5 05:32:32 UTC 2017

#35760: Provide API for TinyMCE editor to be dynamically instantiated via JS
 Reporter:  westonruter  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Editor       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  javascript

Comment (by westonruter):

 Replying to [comment:4 azaozz]:
 > I'm not sure it will be possible to use the current TinyMCE in the
 customizer sidebar. There is simply not enough space in there. Also the
 user experience will be quite bad, trying to "preview" something in the
 sidebar? Thinking it will be much better after the customizer UI is
 fixed/updated and (hopefully) moves away from the current layout.

 I agree. However, I think that a TinyMCE control could be a suitable drop-
 in replacement for the current `textarea` in the sidebar *if* the controls
 were very stripped-down to just have the most essential buttons (like
 bold, italics, and link). Otherwise the editor would indeed need to be
 located somewhere else. The [https://github.com/xwp/wp-customize-posts
 Customize Posts] plugin addresses this by sliding the TinyMCE editor in
 from the bottom as a separate pane:

 One other option would be to consider switching to a “wide widget”
 configuration for the Text widget and that would allow for more horizontal
 space, although the widget would expand over the preview (which can block
 previewing of the element you want to see). This is what can be seen in
 the [https://wordpress.org/plugins/black-studio-tinymce-widget/ Black
 Studio TinyMCE Widget]: [attachment:black-studio-tinymce-widget.png]

 The other option to move toward is inline editing within the preview
 itself. This needs to be explored regardless, but it doesn't really help
 solve the space constraint problem since text widgets would commonly
 appear in a theme sidebar location that is no wider than the customizer
 controls are, so there wouldn't be any extra room for the toolbars.

Ticket URL: <https://core.trac.wordpress.org/ticket/35760#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list