Ticket #5240: 5240.patch
File 5240.patch, 1.5 KB (added by , 14 years ago) |
---|
-
_source/plugins/flash/dialogs/flash.js
265 265 paramMap[ paramList.getItem( i ).getAttribute( 'name' ) ] = paramList.getItem( i ); 266 266 } 267 267 268 // Apply or remove flash parameters. 269 var extraStyles = {}; 270 this.commitContent( objectNode, embedNode, paramMap, extraStyles ); 268 // A subset of the specified attributes/styles 269 // should also be applied on the fake element to 270 // have better visual effect. (#5240) 271 var extraStyles = {}, extraAttributes = {}; 272 this.commitContent( objectNode, embedNode, paramMap, extraStyles, extraAttributes ); 271 273 272 274 // Refresh the fake image. 273 275 var newFakeImage = editor.createFakeElement( objectNode || embedNode, 'cke_flash', 'flash', true ); 276 newFakeImage.setAttributes( extraAttributes ); 274 277 newFakeImage.setStyles( extraStyles ); 275 278 if ( this.fakeImage ) 276 279 { … … 572 575 [ editor.lang.flash.alignTop , 'top'] 573 576 ], 574 577 setup : loadValue, 575 commit : commitValue 578 commit : function( objectNode, embedNode, paramMap, extraStyles, extraAttributes ) 579 { 580 var value = this.getValue(); 581 commitValue.apply( this, arguments ); 582 value && ( extraAttributes.align = value ); 583 } 576 584 }, 577 585 { 578 586 type : 'html',