• I’m initializing the editor via wp.editor.initialize in javascript. Is it possible to make the toolbar show there as well?

    This is what I’m doing. If I’ll manually add the table plugin for example, it will show, but would like to just show the toolbar.

    
    wp.editor.initialize(editorId, {
        tinymce: {
            toolbar1: 'formatselect, bold, italic, underline, blockquote, bullist, numlist, alignleft ,aligncenter, alignright, link, unlink, spellchecker, wp_more, spellchecker, fullscreen, wp_adv',
            toolbar2: 'strikethrough, hr, forecolor, pastetext, removeformat, charmap, outdent, indent, undo, redo, wp_help',
            plugins: 'charmap, colorpicker, hr, lists, paste, tabfocus, textcolor, fullscreen, wordpress, wpautoresize, wpeditimage, wpemoji, wpgallery, wplink, wptextpattern',
        },
        quicktags: true,
        mediaButtons: true,
        inline: true,
    });
    
    • This topic was modified 4 years, 6 months ago by isaacbenh.
Viewing 1 replies (of 1 total)
  • Thread Starter isaacbenh

    (@isaacbenh)

    Added menu_bar: true and I can see it now, but I still have to manually specify all the advanced plugins in the settings. I wonder why WordPress doesn’t have the default settings in wp.editor like it does when you use wp_editor()

    • This reply was modified 4 years, 6 months ago by isaacbenh.
    • This reply was modified 4 years, 6 months ago by isaacbenh.
Viewing 1 replies (of 1 total)
  • The topic ‘Toolbar not showing’ is closed to new replies.