Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#27450 closed defect (bug) (invalid)

3.9 set css classes to created buttons

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

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
11 years ago

  • Summary changed from Set css classes to created buttons to 3.9 set css classes to created buttons

#2 @azaozz
11 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 11 years ago by azaozz (previous) (diff)

#3 @mobadawy
11 years ago

Thank you @azaozz.

#4 @iseulde
11 years ago

  • Keywords close removed
  • Resolution set to invalid
  • Status changed from new to closed

#5 @ocean90
11 years ago

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