CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Custom menu or buttons

by bob9999 » 22 Oct 2019 17:44

Hi there. I am at a complete loss on how to get custom buttons or menu items to work on this component. I go into custom buttons and create a button and then nothing happens. In the tiny documentations there is code to create custom menu options but I cannot see anything in the component to turn this on or configure.

What I want to do is paste certain images at the cursor position and this cannot be from external to the component and has to be in-line. So the menu action will be a canned static paste command basically. Here is the code from tiny.

tinymce.init({
selector: '#editor',
menu: {
custom: { title: 'Custom Menu', items: 'undo redo myCustomMenuItem' }
},
menubar: 'file edit custom',
setup: (editor) => {
editor.ui.registry.addMenuItem('myCustomMenuItem', {
text: 'My Custom Menu Item',
onAction: () => alert('Menu item clicked')
});
}
});

Does anyone know how to do this or is this even possible with the CG translation into Tiny?

Cheers!
bob9999
 
Posts: 110
Joined: 18 Jan 2019 17:32

Return to CGTinyMCE

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.