wp/wp-admin/js/editor-expand.js
changeset 21 48c4eec2b7e6
parent 16 a86126ab1dd4
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
  1550 				}
  1550 				}
  1551 
  1551 
  1552 				// Bind and unbind based on the distraction free writing focus.
  1552 				// Bind and unbind based on the distraction free writing focus.
  1553 				$document.on( 'dfw-on.focus', mceBind ).on( 'dfw-off.focus', mceUnbind );
  1553 				$document.on( 'dfw-on.focus', mceBind ).on( 'dfw-off.focus', mceUnbind );
  1554 
  1554 
  1555 				// Focuse the editor when it is the target of the click event.
  1555 				// Focus the editor when it is the target of the click event.
  1556 				editor.on( 'click', function( event ) {
  1556 				editor.on( 'click', function( event ) {
  1557 					if ( event.target === editor.getDoc().documentElement ) {
  1557 					if ( event.target === editor.getDoc().documentElement ) {
  1558 						editor.focus();
  1558 						editor.focus();
  1559 					}
  1559 					}
  1560 				} );
  1560 				} );