X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fflash%2Fplugin.js;h=97f8a1242d98f1c18071e94b5e516c119b0aa0ab;hp=7641a9ede575c93e8f5d2cf79c199e368aebede7;hb=f0610347140239143439a511ee2bd48cb784f470;hpb=4e70ea24db840898be8cc21c950363a52a2a6aba diff --git a/_source/plugins/flash/plugin.js b/_source/plugins/flash/plugin.js index 7641a9e..97f8a12 100644 --- a/_source/plugins/flash/plugin.js +++ b/_source/plugins/flash/plugin.js @@ -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',