tinyMCEPopup.requireLangPack();var PasteTextDialog={init:function(){this.resize()},insert:function(){var c=tinyMCEPopup.dom.encode(document.getElementById("content").value),d;if(document.getElementById("linebreaks").checked){d=c.split(/\r?\n/);if(d.length>1){c="";tinymce.each(d,function(a){c+="<p>"+a+"</p>"})}}tinyMCEPopup.editor.execCommand("mceInsertClipboardContent",false,{content:c});tinyMCEPopup.close()},resize:function(){var d=tinyMCEPopup.dom.getViewPort(window),c;c=document.getElementById("content");c.style.width=(d.w-20)+"px";c.style.height=(d.h-90)+"px"}};tinyMCEPopup.onInit.add(PasteTextDialog.init,PasteTextDialog);