wpView: fix deselecting a view when clicking outside the iframe body. Props avryl, fixes #28268

Built from https://develop.svn.wordpress.org/trunk@28687


git-svn-id: http://core.svn.wordpress.org/trunk@28505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-06-06 05:04:14 +00:00
parent 23b0443578
commit fbdb89b89a
3 changed files with 2 additions and 2 deletions

View File

@ -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;

File diff suppressed because one or more lines are too long