Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#27450 closed defect (bug) (invalid)

3.9 set css classes to created buttons

Reported by: mobadawy Owned by:
Priority: normal Milestone:
Component: TinyMCE Version: 3.8.1
Severity: normal Keywords:
Cc: Focuses:

Description

When i create new buttons it doesn't has specific class, all buttons i have created it has this class mce-i-none, is there a way to set specific classs to new created buttons?
http://i.imgur.com/JyVA1DC.png

Change History (5)

#1 @mobadawy
12 years ago

  • Summary Set css classes to created buttons3.9 set css classes to created buttons

#2 @azaozz
12 years ago

  • Keywords close added

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 it in the icon property. Example https://github.com/tinymce/tinymce/blob/master/js/tinymce/plugins/image/plugin.js#L392

Last edited 12 years ago by azaozz (previous) (diff)

#3 @mobadawy
12 years ago

Thank you @azaozz.

#4 @iseulde
12 years ago

  • Keywords close removed
  • Resolutioninvalid
  • Status newclosed

#5 @ocean90
12 years ago

  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.