equal
deleted
inserted
replaced
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 } ); |