JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.1
[ckeditor.git] / _source / plugins / iframe / plugin.js
index a1c3f41..6c21a32 100644 (file)
@@ -5,25 +5,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \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
@@ -96,7 +77,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                        {\r
                                                iframe : function( element )\r
                                                {\r
-                                                       return createFakeElement( editor, element );\r
+                                                       return editor.createFakeParserElement( element, 'cke_iframe', 'iframe', true );\r
                                                }\r
                                        }\r
                                });\r