我正在使用 TinyMce-5,我必须添加一些自定义按钮,这些按钮工作得很好,但我不知道如何在这些按钮上添加图像作为图标,因为 fontawesomes 没有提供这些图标,所以我需要在按钮上放置一个 .png 图像作为图标。这是我在设置中使用的代码:参数
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');
}
});