Ticket #6686: 6686.patch
File 6686.patch, 671 bytes (added by , 13 years ago) |
---|
-
_source/plugins/bidi/plugin.js
33 33 34 34 selectedElement = selectedElement || path.block || path.blockLimit; 35 35 36 if ( !selectedElement || selectedElement.getName() == 'body' ) 36 // If we're having BODY here, user probably done CTRL+A, let's try to get the enclosed node, if any. 37 selectedElement.is( 'body' ) && 38 ( selectedElement = editor.getSelection().getRanges()[ 0 ].getEnclosedNode() ); 39 40 if ( !selectedElement ) 37 41 return; 38 42 39 43 var selectionDir = useComputedState ?