[wp-trac] [WordPress Trac] #27159: Removing TinyMCE buttons to improve user experience

WordPress Trac noreply at wordpress.org
Tue Sep 13 18:32:41 UTC 2016


#27159: Removing TinyMCE buttons to improve user experience
-------------------------------------------------+-------------------------
 Reporter:  hugobaeta                            |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  4.7
Component:  TinyMCE                              |     Version:  3.8
 Severity:  normal                               |  Resolution:
 Keywords:  needs-patch needs-screenshots        |     Focuses:  ui,
  needs-research needs-user-testing              |  administration
-------------------------------------------------+-------------------------

Comment (by mrwweb):

 Replying to [comment:64 hugobaeta]:
 > I don't understand is the formatselect replacement with styleselect. Can
 you expand on this a bit?

 Documentation for working with `styleselect` can be found on the Codex:
 [https://codex.wordpress.org/TinyMCE_Custom_Styles TinyMCE Custom Styles]

 It allows additional styles to be defined and applied by the editor. That
 can mean applying classes (with the option to specify what elements that
 class can apply to) or inserting block-level elements like a blockquote
 (which doesn't always work super well). Real-world examples I use it for
 all the time:

 1. Create a "Pull Quote" style that wraps selected text in a `blockquote`
 with the class "pull-quote"
 2. Apply a "Button" class to a link when selected

 It also has no problems with Headings and `pre`, so can replace AND extend
 `formatselect`. Probably the biggest downside is that the dropdown always
 says "Format" and not the actual format (e.g. Heading 2, Paragraph) of the
 text containing the cursor.

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


More information about the wp-trac mailing list