Changeset 6551
- Timestamp:
- 03/15/11 17:43:52 (2 years ago)
- File:
-
- 1 edited
-
CKEditor/trunk/_source/plugins/bidi/plugin.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/_source/plugins/bidi/plugin.js
r6478 r6551 266 266 // the element and all its children, so it will get really reflected 267 267 // like a mirror. (#5910) 268 function isOffline( el ) 269 { 270 var html = el.getDocument().getBody().getParent(); 271 while ( el ) 272 { 273 if ( el.equals( html ) ) 274 return false; 275 el = el.getParent(); 276 } 277 return true; 278 } 268 279 function dirChangeNotifier( org ) 269 280 { … … 276 287 if ( !this.getDocument().equals( CKEDITOR.document ) ) 277 288 { 278 var orgDir , dir;279 if ( name == ( isAttribute || isRemoveAttribute ? 'dir' : 'direction' ) ||280 name == 'style' && ( isRemoveAttribute || dirStyleRegexp.test( val ) ) ) 289 var orgDir; 290 if ( ( name == ( isAttribute || isRemoveAttribute ? 'dir' : 'direction' ) || 291 name == 'style' && ( isRemoveAttribute || dirStyleRegexp.test( val ) ) ) && !isOffline( this ) ) 281 292 { 282 293 orgDir = this.getDirection( 1 );
Note: See TracChangeset
for help on using the changeset viewer.
