1 tinyMCEPopup.requireLangPack();
3 function saveContent() {
4 var html = document.getElementById("frmData").contentWindow.document.body.innerHTML;
11 tinyMCEPopup.execCommand('mcePasteWord', false, html);
15 function onLoadInit() {
16 tinyMCEPopup.resizeToInnerSize();
18 // Fix for endless reloading in FF
19 window.setTimeout(createIFrame, 10);
22 function createIFrame() {
23 document.getElementById('iframecontainer').innerHTML = '<iframe id="frmData" name="frmData" class="sourceIframe" src="blank.htm" height="280" width="400" frameborder="0" style="background-color:#FFFFFF; width:100%;" dir="ltr" wrap="soft"></iframe>';
26 var wHeight=0, wWidth=0, owHeight=0, owWidth=0;
28 function initIframe(doc) {
29 var dir = tinyMCEPopup.editor.settings.directionality;
33 // Remove Gecko spellchecking
35 doc.body.spellcheck = tinyMCEPopup.getParam("gecko_spellcheck");
40 function resizeInputs() {
42 wHeight = self.innerHeight - 80;
43 wWidth = self.innerWidth - 18;
45 wHeight = document.body.clientHeight - 80;
46 wWidth = document.body.clientWidth - 18;
49 var elm = document.getElementById('frmData');
51 elm.style.height = Math.abs(wHeight) + 'px';
52 elm.style.width = Math.abs(wWidth) + 'px';
56 tinyMCEPopup.onInit.add(onLoadInit);