Changeset 31143
- Timestamp:
- 01/11/2015 08:41:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wpview/plugin.js
r30986 r31143 163 163 editorToolbar = tinymce.$( editor.editorContainer ).find( '.mce-toolbar-grp' )[0], 164 164 editorToolbarBottom = ( editorToolbar && editorToolbar.getBoundingClientRect().bottom ) || 0; 165 165 166 166 if ( toolbar.length && editor.iframeElement ) { 167 167 // 48 = 43 for the toolbar + 5 buffer … … 265 265 setViewCursor( false, view ); 266 266 event.preventDefault(); 267 } else {267 } else if ( x < bodyRect.left || x > bodyRect.right ) { 268 268 tinymce.each( editor.dom.select( '.wpview-wrap' ), function( view ) { 269 269 var rect = view.getBoundingClientRect(); 270 271 if ( y < rect.top ) { 272 return false; 273 } 270 274 271 275 if ( y >= rect.top && y <= rect.bottom ) { … … 277 281 event.preventDefault(); 278 282 } 279 return; 283 284 return false; 280 285 } 281 286 });
Note: See TracChangeset
for help on using the changeset viewer.