(function(){function a(b,c){var d=b.createFakeParserElement(c,'cke_iframe','iframe',true),e=d.attributes.style||'',f=c.attributes.width,g=c.attributes.height;if(typeof f!='undefined')e+='width:'+CKEDITOR.tools.cssLength(f)+';';if(typeof g!='undefined')e+='height:'+CKEDITOR.tools.cssLength(g)+';';d.attributes.style=e;return d;};CKEDITOR.plugins.add('iframe',{requires:['dialog','fakeobjects'],init:function(b){var c='iframe',d=b.lang.iframe;CKEDITOR.dialog.add(c,this.path+'dialogs/iframe.js');b.addCommand(c,new CKEDITOR.dialogCommand(c));b.addCss('img.cke_iframe{background-image: url('+CKEDITOR.getUrl(this.path+'images/placeholder.png')+');'+'background-position: center center;'+'background-repeat: no-repeat;'+'border: 1px solid #a9a9a9;'+'width: 80px;'+'height: 80px;'+'}');b.ui.addButton('Iframe',{label:d.toolbar,command:c});b.on('doubleclick',function(e){var f=e.data.element;if(f.is('img')&&f.data('cke-real-element-type')=='iframe')e.data.dialog='iframe';});if(b.addMenuItems)b.addMenuItems({iframe:{label:d.title,command:'iframe',group:'image'}});if(b.contextMenu)b.contextMenu.addListener(function(e,f){if(e&&e.is('img')&&e.data('cke-real-element-type')=='iframe')return{iframe:CKEDITOR.TRISTATE_OFF};});},afterInit:function(b){var c=b.dataProcessor,d=c&&c.dataFilter;if(d)d.addRules({elements:{iframe:function(e){return a(b,e);}}});}});})();
