I have created two context menus in TinyMCE
editor.addMenuItem('insert_element', {
text: 'Insert',
onclick: insert_action,
});
editor.addMenuItem('insert_fig', {
text: 'Figure',
onclick: insert_figure,
context: 'insert_element',
prependToContext: true
});
and passed the context menus in tinymce.init
...
tinymce.init({
...
contextmenu: "insert_element,insert_fig",
...
});
...
Now on right clicking in active text area, i got two menus as "Insert" and "Figure".
I would like to change the "Figure" menu as a sub-menu of insert. How it would be possible by passing contextmenu via tinymce.init. I just used context option to make submenu but it's not working