• I understand the simpler syntax for displaying menubar items.

    To display everything except “File” and “Tools” across menubar:

    Option name: menubar
    Value: edit insert view format table

    However, what’s the syntax to be entered to custom each of the menu items? I am looking at http://www.tinymce.com/wiki.php/Configuration:menu

    Let’s take this sample as reference.

    menu : {
            edit   : {title : 'Edit'  , items : 'undo redo | pastetext | selectall'},
            insert : {title : 'Insert', items : 'link media | template hr'},
            view   : {title : 'View'  , items : 'visualaid'},
            format : {title : 'Format', items : 'bold italic underline strikethrough superscript subscript | formats | removeformat'},
            table  : {title : 'Table' , items : 'inserttable tableprops deletetable | cell row column'}
        }

    Thank you in advance.

    https://wordpress.org/plugins/advanced-tinymce-configuration/

Viewing 1 replies (of 1 total)
  • Thread Starter Joe Banks

    (@joenasagrc)

    Aaaaaannnnd, if you wait long enough, user can apply himself and answer his own question:

    Option name: menu

    Value:

    {edit : {title : 'Edit' , items : 'undo redo | pastetext | selectall'}, insert : {title : 'Insert', items : 'link media | template hr'}, view : {title : 'View' , items : 'visualaid'},  format : {title : 'Format', items : 'bold italic underline strikethrough superscript subscript | formats | removeformat'},  table : {title : 'Table' , items : 'inserttable tableprops deletetable | cell row column'}}

    Notes to self/those reading along:

    Spacing is important between colons.

    All one line

    Bad syntax causes TinyMCE visual editor from appearing on post admin screen.

    Which leads me to creating a plugin to create a specific initial configuration.

    End notes to self/those reading along.

Viewing 1 replies (of 1 total)
  • The topic ‘Controlling Menubar Elements and Syntax to Be Entered’ is closed to new replies.