WordPress 4.8 – Can’t find variable: wp

Looks like you need to enqueue the editor scripts manually, after 4.8, using wp_enqueue_editor() in your theme/plugin: https://make.wordpress.org/core/2017/05/20/editor-api-changes-in-4-8/