/*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
(function()\r
{\r
- function createFakeElement( editor, realElement )\r
- {\r
- var fakeElement = editor.createFakeParserElement( realElement, 'cke_iframe', 'iframe', 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 += 'width:' + CKEDITOR.tools.cssLength( width ) + ';';\r
-\r
- if ( typeof height != 'undefined' )\r
- fakeStyle += 'height:' + CKEDITOR.tools.cssLength( height ) + ';';\r
-\r
- fakeElement.attributes.style = fakeStyle;\r
-\r
- return fakeElement;\r
- }\r
-\r
CKEDITOR.plugins.add( 'iframe',\r
{\r
requires : [ 'dialog', 'fakeobjects' ],\r
{\r
iframe : function( element )\r
{\r
- return createFakeElement( editor, element );\r
+ return editor.createFakeParserElement( element, 'cke_iframe', 'iframe', true );\r
}\r
}\r
});\r