Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #27450, comment 2


Ignore:
Timestamp:
03/20/2014 11:58:04 PM (13 years ago)
Author:
azaozz

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27450, comment 2

    v1 v2  
    1 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
     1Hi @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