Support

Account

Home Forums ACF PRO Adding custom button to TinyMCE’s “code” toolbar

Unread

Adding custom button to TinyMCE’s “code” toolbar

  • I can add my custom TinyMCE buttons to the “Visual” toolbar, but I am unable to add it to the “Code” toolbar where I want it. Does anyone know how to do that?

    I am using the ‘acf/fields/wysiwyg/toolbars’ to add ‘customClassButton’ to the $toolbars. My custom toolbar is called ‘Plus’.

    $toolbars[‘Plus’] = array(
    array(
    “wp_adv”,
    ),
    array(
    “customClassButton”,
    “bold”,
    “forecolor”,
    “removeformat”,
    “charmap”,
    “outdent”,
    “indent”,
    “undo”,
    “redo”,
    “custom_button”,
    “wp_help”,
    “wpview”
    ),
    );

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.