NEW_CKEDITOR.plugins.add("iframe",{requires:"dialog,fakeobjects",lang:"af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,es-mx,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn",icons:"iframe",hidpi:!0,onLoad:function(){NEW_CKEDITOR.addCss("img.edi_iframe{background-image: url("+NEW_CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(e){var a=e.lang.iframe,t="iframe[align,longdesc,tabindex,frameborder,height,name,scrolling,src,title,width,sandbox]";e.plugins.dialogadvtab&&(t+=";iframe"+e.plugins.dialogadvtab.allowedContent({id:1,classes:1,styles:1})),NEW_CKEDITOR.dialog.add("iframe",this.path+"dialogs/iframe.js"),e.addCommand("iframe",new NEW_CKEDITOR.dialogCommand("iframe",{allowedContent:t,requiredContent:"iframe"})),e.ui.addButton&&e.ui.addButton("Iframe",{label:a.toolbar,command:"iframe",toolbar:"insert,80"}),e.on("doubleclick",(function(e){var a=e.data.element;a.is("img")&&"iframe"==a.data("edi-real-element-type")&&(e.data.dialog="iframe")})),e.addMenuItems&&e.addMenuItems({iframe:{label:a.title,command:"iframe",group:"image"}}),e.contextMenu&&e.contextMenu.addListener((function(e){if(e&&e.is("img")&&"iframe"==e.data("edi-real-element-type"))return{iframe:NEW_CKEDITOR.TRISTATE_OFF}}))},afterInit:function(e){var a=e.dataProcessor;(a=a&&a.dataFilter)&&a.addRules({elements:{iframe:function(a){var t=e.plugins.iframe._.getIframeAttributes(e,a);return void 0!==t&&(a.attributes=NEW_CKEDITOR.tools.object.merge(a.attributes,t)),e.createFakeParserElement(a,"edi_iframe","iframe",!0)}}})},_:{getIframeAttributes:function(e,a){var t=e.config.iframe_attributes;return"function"==typeof t?t(a):"object"==typeof t?t:void 0}}}),NEW_CKEDITOR.config.iframe_attributes={sandbox:""};