wpView: fix deselecting a view when clicking outside the iframe body. Props avryl, fixes #28268
git-svn-id: https://develop.svn.wordpress.org/trunk@28687 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b1b0e54f7f
commit
67639d7e91
@ -281,7 +281,7 @@ tinymce.PluginManager.add( 'wpview', function( editor ) {
|
||||
node.innerHTML = wp.mce.views.toViews( node.innerHTML );
|
||||
});
|
||||
|
||||
editor.dom.bind( editor.getBody(), 'mousedown mouseup click', function( event ) {
|
||||
editor.dom.bind( editor.getBody().parentNode, 'mousedown mouseup click', function( event ) {
|
||||
var view = getParentView( event.target ),
|
||||
deselectEventType;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user