Answer the question
In order to leave comments, you need to log in
Is it possible to save the icon (picture) of the new button in another place?
There is an example:
(function() {
tinymce.create('tinymce.plugins.new_button', {
init: function(ed, url) {
ed.addButton('button_span_normal', {
title: 'Новая кнопка',
image: url + '/new-button.png',
onclick: function() {
ed.selection.setContent('[yellow]' + ed.selection.getContent() + '[/yellow]');
}
});
},
createControl: function(n, cm) {
return null;
},
});
tinymce.PluginManager.add('tinymce_new_button', tinymce.plugins.new_button);
})();
https://название сайта/assets/js/
https://название сайта/assets/images/
Answer the question
In order to leave comments, you need to log in
If you are not too lazy to have one path for all button icons, but for new ones add a condition and set an alternative path and you can’t solve this issue in another way, then you can.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question