I'm using TinyMce-5 and I have to add some custom buttons to it, the buttons are working great but I don't know how to add an image as icon on those buttons, as fontawesomes do not come up with those icons, so I need to put a .png image as icon on the button. Here is my code that I've used in setup: parameter
ed.ui.registry.addButton('alignTop', {
image:'http://localhost/image-process/images/donut_PNG27.png',
tooltip: 'Align box top',
onAction: function () {
$('.shape[data-active=me]').css('top','0px');
}
});