diff --git a/src/wp-admin/js/editor.js b/src/wp-admin/js/editor.js index 33c9ae4194..03187d9771 100644 --- a/src/wp-admin/js/editor.js +++ b/src/wp-admin/js/editor.js @@ -646,10 +646,7 @@ window.wp = window.wp || {}; qtInstance = window.QTags.getInstance( id ); if ( qtInstance ) { - $( qtInstance.toolbar ).remove(); - - delete window.QTags.instances[ id ]; - delete window.QTags.instances[ 0 ]; + qtInstance.remove(); } }