‘Add Media’ button doesn’t work when editor is initialized from javascript

The solution was to call wp_enqueue_media() along with wp_enqueue_editor().

Leave a Comment