Adding custom button with markup to tinyMCE / richtexteditor
I need to add a custom button to the tinyMCE / richtexteditor.
From what I can gather, this can be done with TinyMCE with the following code (not the entire code, just a part of it), I am just not sure where I should add this? I see config can be specified in the appsettings.json, but it does not seem to cater for custom buttons:
setup: function (editor) {
editor.ui.registry.addButton('customInsertButton', {
text: 'CustomList',
onAction: function (_) {
editor.insertContent(' <ul class="custom-list"><li>item</li></ul> ');
}
});
Adding custom button with markup to tinyMCE / richtexteditor
I need to add a custom button to the tinyMCE / richtexteditor.
From what I can gather, this can be done with TinyMCE with the following code (not the entire code, just a part of it), I am just not sure where I should add this? I see config can be specified in the appsettings.json, but it does not seem to cater for custom buttons:
Hi Have you seen this post https://our.umbraco.com/forum/umbraco-7/using-umbraco-7/71490-custom-button-at-tinymce
I would think the answer could be used in this context
But be aware that it would probably be overwritten if you upgrade
is working on a reply...