Make WordPress Core

Opened 13 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
13 years ago

  • Summary Set css classes to created buttons → 3.9 set css classes to created buttons

#2 @azaozz
13 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 icon property for it. Example ​https://github.com/tinymce/tinymce/blob/master/js/tinymce/plugins/image/plugin.js#L392

Version 1, edited 13 years ago by azaozz (previous) (next) (diff)

#3 @mobadawy
13 years ago

Thank you @azaozz.

#4 @iseulde
12 years ago

  • Keywords close removed
  • Resolution → invalid
  • Status new → closed

#5 @ocean90
12 years ago

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