Editor: Update wp.editor.remove() to use the new Quicktags instance removep().

Fixes: #35760

git-svn-id: https://develop.svn.wordpress.org/trunk@40599 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2017-05-10 02:49:40 +00:00
parent ef7b643a97
commit 2e9582fd6d

View File

@ -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();
}
}