• Resolved [email protected]

    (@jakubkohout11gmailcom)


    Hi guys,

    does anyone know how to extend the tinyMCE embed media inline toolbar for custom button with custom action?

    For example you have video in your tinymce article and when you click on it, tinyMCE inline toolbar will appear with two buttons (edit, remove). I would add another one there, for example alighn-left or align-right

    So far I have only found is this piece of code in wp-includes/js/tinymce/themes/modern/theme.js


    panel = Factory.create({
    type: 'floatpanel',
    role: 'application',
    classes: 'tinymce tinymce-inline',
    layout: 'flex',
    direction: 'column',
    align: 'stretch',
    autohide: false,
    autofix: true,
    fixed: true,
    border: 1,
    items: createToolbar(match.toolbar.items)
    });

    I’ll appreciate any insight or an advice.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to add custom button to the tinyMCE embed media inline toolbar’ is closed to new replies.