{\r
var flashFilenameRegex = /\.swf(?:$|\?)/i;\r
\r
- var cssifyLength = CKEDITOR.tools.cssLength;\r
-\r
function isFlashEmbed( element )\r
{\r
var attributes = element.attributes;\r
\r
function createFakeElement( editor, realElement )\r
{\r
- var fakeElement = editor.createFakeParserElement( realElement, 'cke_flash', 'flash', true ),\r
- fakeStyle = fakeElement.attributes.style || '';\r
-\r
- var width = realElement.attributes.width,\r
- height = realElement.attributes.height;\r
-\r
- if ( typeof width != 'undefined' )\r
- fakeStyle = fakeElement.attributes.style = fakeStyle + 'width:' + cssifyLength( width ) + ';';\r
-\r
- if ( typeof height != 'undefined' )\r
- fakeStyle = fakeElement.attributes.style = fakeStyle + 'height:' + cssifyLength( height ) + ';';\r
-\r
- return fakeElement;\r
+ return editor.createFakeParserElement( realElement, 'cke_flash', 'flash', true );\r
}\r
\r
CKEDITOR.plugins.add( 'flash',\r