How can I get the standard WP-Editor through Javascript?
Ok I found the solution here Just do wp.editor.initialize(‘editor_id’, { tinymce: true, quicktags: true }); And then add buttons to the toolbar like so: jQuery( document ).on( ‘tinymce-editor-setup’, function( event, editor ) { if(editor.id !== ‘editor_id’) return; editor.settings.toolbar1 += ‘,mybutton,alignleft,aligncenter,alignright,fontselect,hr’; editor.addButton( ‘mybutton’, { text: ‘My button’, icon: false, onclick: function () { editor.insertContent(“It’s my button!”); … Read more