function deselect() {
		let clipboard,
			dom = editor.dom;

		if ( selected ) {
			clipboard = editor.dom.select( '.wpview-clipboard', selected )[ 0 ];
			dom.unbind( clipboard );
			dom.remove( clipboard );

			dom.unbind( selected, 'beforedeactivate focusin focusout click mouseup', _stop );
			dom.setAttrib( selected, 'data-mce-selected', null );
		}

		selected = null;
	}
function deselect() {
		let clipboard,
			dom = editor.dom;

		if ( selected ) {
			clipboard = editor.dom.select( '.wpview-clipboard', selected )[ 0 ];
			dom.unbind( clipboard );
			dom.remove( clipboard );

			dom.unbind( selected, 'beforedeactivate focusin focusout click mouseup', _stop );
			dom.setAttrib( selected, 'data-mce-selected', null );
		}

		selected = null;
	}
function deselect ( ) { let clipboard , dom = editor . dom ; if ( selected ) { clipboard = editor . dom . select ( '.wpview-clipboard' , selected ) [ 0 ] ; dom . unbind ( clipboard ) ; dom . remove ( clipboard ) ; dom . unbind ( selected , 'beforedeactivate focusin focusout click mouseup' , _stop ) ; dom . setAttrib ( selected , 'data-mce-selected' , null ) ; } selected = null ; }
Deselect a selected view and remove clipboard
Deselect a selected view and remove clipboard