[wp-trac] [WordPress Trac] #27381: TinyMCE styleselect

WordPress Trac noreply at wordpress.org
Wed Mar 12 18:21:50 UTC 2014


#27381: TinyMCE styleselect
--------------------------+-----------------------------
 Reporter:  afercia       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  TinyMCE       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 in 3.9 beta 1
 about Enabling styleselect
 https://codex.wordpress.org/TinyMCE_Custom_Styles#Enabling_styleselect

 It works but it looks like a button not a select. Needs a couple of
 additional CSS classes.
 in tinymce.js
 function registerControls
 ...
 editor.addButton('styleselect', {
 ...

 when I change type: 'menubutton',
 in
 type: 'listbox',

 and add
 fixedWidth: true,

 the style select gets the CSS selector it needs: 'mce-fixed-width mce-
 listbox'
 Please refer also to attached screenshots.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27381>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list