X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fflash%2Fplugin.js;h=6645cd0e02d0129aad1630937547ee317fdd3744;hb=3fe9cac293e090ea459a3ee10d78cbe9e1dd0e03;hp=7641a9ede575c93e8f5d2cf79c199e368aebede7;hpb=4e90e78dc97789709ee7404359a5517540c27553;p=ckeditor.git diff --git a/_source/plugins/flash/plugin.js b/_source/plugins/flash/plugin.js index 7641a9e..6645cd0 100644 --- a/_source/plugins/flash/plugin.js +++ b/_source/plugins/flash/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -7,8 +7,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { var flashFilenameRegex = /\.swf(?:$|\?)/i; - var cssifyLength = CKEDITOR.tools.cssLength; - function isFlashEmbed( element ) { var attributes = element.attributes; @@ -18,19 +16,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license function createFakeElement( editor, realElement ) { - var fakeElement = editor.createFakeParserElement( realElement, 'cke_flash', 'flash', true ), - fakeStyle = fakeElement.attributes.style || ''; - - var width = realElement.attributes.width, - height = realElement.attributes.height; - - if ( typeof width != 'undefined' ) - fakeStyle = fakeElement.attributes.style = fakeStyle + 'width:' + cssifyLength( width ) + ';'; - - if ( typeof height != 'undefined' ) - fakeStyle = fakeElement.attributes.style = fakeStyle + 'height:' + cssifyLength( height ) + ';'; - - return fakeElement; + return editor.createFakeParserElement( realElement, 'cke_flash', 'flash', true ); } CKEDITOR.plugins.add( 'flash',