<?php

add_action('admin_menu', function() {
	add_menu_page( 'Test For #27605', 'Test For #27605', 'administrator', __FILE__, 'test_settings_page' );
} );


function test_settings_page() {

    ?>

    <div class="wrap">

        <div id="test-editor-container">
            <?php wp_editor( 'test', 'test-editor' ); ?>
        </div>

        <button onclick="getElementById('test-editor-container').remove();">Remove Editor</button>

    </div>

    <?php

} ?>