Sha256: 8a5988f9a8656f15dcd4d175c652862d95ad912b37ece2e0742ecf93b11dff19
Contents?: true
Size: 1.22 KB
Versions: 20
Compression:
Stored size: 1.22 KB
Contents
tinyMCEPopup.requireLangPack();var PasteWordDialog={init:function(){var a=tinyMCEPopup.editor,c=document.getElementById("iframecontainer"),f,e,b,d="";c.innerHTML='<iframe id="iframe" src="javascript:\'\';" frameBorder="0" style="border: 1px solid gray"></iframe>';f=document.getElementById("iframe");e=f.contentWindow.document;b=[a.baseURI.toAbsolute("themes/"+a.settings.theme+"/skins/"+a.settings.skin+"/content.css")];b=b.concat(tinymce.explode(a.settings.content_css)||[]);tinymce.each(b,function(g){d+='<link href="'+a.documentBaseURI.toAbsolute(""+g)+'" rel="stylesheet" type="text/css" />'});e.open();e.write("<html><head>"+d+'</head><body class="mceContentBody" spellcheck="false"></body></html>');e.close();e.designMode="on";this.resize();window.setTimeout(function(){f.contentWindow.focus()},10)},insert:function(){var a=document.getElementById("iframe").contentWindow.document.body.innerHTML;tinyMCEPopup.editor.execCommand("mceInsertClipboardContent",false,{content:a,wordContent:true});tinyMCEPopup.close()},resize:function(){var a=tinyMCEPopup.dom.getViewPort(window),b;b=document.getElementById("iframe");if(b){b.style.width=(a.w-20)+"px";b.style.height=(a.h-90)+"px"}}};tinyMCEPopup.onInit.add(PasteWordDialog.init,PasteWordDialog);
Version data entries
20 entries across 20 versions & 2 rubygems