(function(){CKEDITOR.dialog.add("pastetext",function(b){return{title:b.lang.pasteText.title,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?368:350,minHeight:240,onShow:function(){this.setupContent()},onOk:function(){this.commitContent()},contents:[{label:b.lang.common.generalTab,id:"general",elements:[{type:"html",id:"pasteMsg",html:'<div style="white-space:normal;width:340px;">'+b.lang.clipboard.pasteMsg+"</div>"},{type:"textarea",id:"content",className:"cke_pastetext",onLoad:function(){var a=this.getDialog().getContentElement("general","pasteMsg").getElement(),d=this.getElement().getElementsByTag("textarea").getItem(0);d.setAttribute("aria-labelledby",a.$.id);d.setStyle("direction",b.config.contentsLangDirection)},focus:function(){this.getElement().focus()},setup:function(){this.setValue("")},commit:function(){var a=this.getValue();setTimeout(function(){b.fire("paste",{text:a})},0)}}]}]}})})();