[wp-trac] [WordPress Trac] #27450: 3.9 set css classes to created buttons

WordPress Trac noreply at wordpress.org
Thu Mar 20 23:54:48 UTC 2014


#27450: 3.9 set css classes to created buttons
--------------------------+------------------------------
 Reporter:  mobadawy      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  3.8.1
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------
Changes (by azaozz):

 * keywords:   => close


Comment:

 Hi @mobadawy, what code do you use to add this button? Looks like you
 specified an image URL for the icon. If you want to add icon with CSS,
 remove that URL. Then the class is created from the button name, the first
 arg you pass to editor.addButton(), or you can specify `image` property
 for it. Example
 https://github.com/tinymce/tinymce/blob/master/js/tinymce/plugins/image/plugin.js#L392

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


More information about the wp-trac mailing list