Changeset 29038
- Timestamp:
- 07/08/2014 10:55:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wpview/plugin.js
r29022 r29038 120 120 dom.bind( selected, 'beforedeactivate focusin focusout', _stop ); 121 121 122 tinymce.DOM.addClass( editor.getContainer(), 'wpview-selected' );123 124 122 // Make sure that the editor is focused. 125 123 // It is possible that the editor is not focused when the mouse event fires … … 509 507 setViewCursor( true, view ); 510 508 } 511 509 512 510 } else if ( keyCode === VK.RIGHT ) { 513 511 setViewCursor( false, view ); … … 565 563 editor.on( 'focus', function() { 566 564 var view; 567 565 568 566 focus = true; 569 567 editor.dom.addClass( editor.getBody(), 'has-focus' ); … … 598 596 dom.removeClass( views, 'wpview-cursor-hide' ); 599 597 600 if ( ! selected ) {601 tinymce.DOM.removeClass( editor.getContainer(), 'wpview-selected' );602 }603 604 598 if ( focus ) { 605 599 if ( view ) { … … 608 602 609 603 deselect(); 610 611 tinymce.DOM.addClass( editor.getContainer(), 'wpview-selected' );612 604 613 605 // Make sure the cursor arrived in the right node.
Note: See TracChangeset
for help on using the changeset viewer.