Ticket #10480: 10480.patch
File 10480.patch, 1.6 KB (added by , 11 years ago) |
---|
-
_source/adapters/jquery.js
269 269 var isSetter = typeof newValue != 'undefined', 270 270 result; 271 271 272 this.each( function() 273 { 274 var $this = jQuery( this ), 275 editor = $this.data( 'ckeditorInstance' ); 276 277 if ( !forceNative && $this.is( 'textarea' ) && editor ) 272 if ( isSetter ) { 273 this.each( function() 278 274 { 279 if ( isSetter ) 280 editor.setData( newValue ); 281 else 275 var $this = jQuery( this ), 276 editor = $this.data( 'ckeditorInstance' ); 277 278 if ( !forceNative && $this.is( 'textarea' ) && editor ) 282 279 { 283 result = editor.getData(); 284 // break; 285 return null; 280 editor.setData( newValue ); 286 281 } 287 }288 else289 {290 if ( isSetter )291 oldValMethod.call( $this, newValue );292 282 else 293 283 { 294 result = oldValMethod.call( $this ); 295 // break; 296 return null; 284 oldValMethod.call( $this, newValue ); 297 285 } 286 287 return true; 288 }); 289 return this; 290 291 } else { 292 var $this = this.first(), 293 editor = $this.data( 'ckeditorInstance' ); 294 295 if ( !forceNative && $this.is( 'textarea' ) && editor ) { 296 return editor.getData(); 297 } else { 298 return oldValMethod.call( $this ); 298 299 } 300 } 299 301 300 return true;301 });302 return isSetter ? this : result;303 302 }; 304 303 }); 305 304 }