How to apply to hide TinyMCE (wp_editor) on button click

ok you need to remove the wrap div of editor like :

$("#btn-hide-editor").click(function() {
    $("#wp-my-editor-wrap").css("display", "none");
});

wrap div id Consists of wp-[your-id]-wrap

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)