#27450 closed defect (bug) (invalid)
3.9 set css classes to created buttons
Reported by: | mobadawy | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.8.1 |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Change History (5)
Note: See
TracTickets for help on using
tickets.
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