X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fiframe%2Fplugin.js;h=6c21a32ad648abb0854ed43504666e83dcf2b1fd;hp=a1c3f419549c4871195d8bbdb4c674f40fdb59fb;hb=f0610347140239143439a511ee2bd48cb784f470;hpb=4e70ea24db840898be8cc21c950363a52a2a6aba diff --git a/_source/plugins/iframe/plugin.js b/_source/plugins/iframe/plugin.js index a1c3f41..6c21a32 100644 --- a/_source/plugins/iframe/plugin.js +++ b/_source/plugins/iframe/plugin.js @@ -5,25 +5,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license (function() { - function createFakeElement( editor, realElement ) - { - var fakeElement = editor.createFakeParserElement( realElement, 'cke_iframe', 'iframe', true ), - fakeStyle = fakeElement.attributes.style || ''; - - var width = realElement.attributes.width, - height = realElement.attributes.height; - - if ( typeof width != 'undefined' ) - fakeStyle += 'width:' + CKEDITOR.tools.cssLength( width ) + ';'; - - if ( typeof height != 'undefined' ) - fakeStyle += 'height:' + CKEDITOR.tools.cssLength( height ) + ';'; - - fakeElement.attributes.style = fakeStyle; - - return fakeElement; - } - CKEDITOR.plugins.add( 'iframe', { requires : [ 'dialog', 'fakeobjects' ], @@ -96,7 +77,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { iframe : function( element ) { - return createFakeElement( editor, element ); + return editor.createFakeParserElement( element, 'cke_iframe', 'iframe', true ); } } });