--- /dev/null
+function saveContent() {\r
+ var html = document.getElementById("frmData").contentWindow.document.body.innerHTML;\r
+\r
+ if (html == ''){\r
+ tinyMCEPopup.close();\r
+ return false;\r
+ }\r
+\r
+ tinyMCEPopup.execCommand('mcePasteWord', false, html);\r
+ tinyMCEPopup.close();\r
+}\r
+\r
+function onLoadInit() {\r
+ tinyMCEPopup.resizeToInnerSize();\r
+\r
+ // Fix for endless reloading in FF\r
+ window.setTimeout('createIFrame();', 10);\r
+}\r
+\r
+function createIFrame() {\r
+ 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>';\r
+}\r
+\r
+var wHeight=0, wWidth=0, owHeight=0, owWidth=0;\r
+\r
+function initIframe(doc) {\r
+ var dir = tinyMCE.selectedInstance.settings['directionality'];\r
+ doc.body.dir = dir;\r
+ resizeInputs();\r
+}\r
+\r
+function resizeInputs() {\r
+ if (!tinyMCE.isMSIE) {\r
+ wHeight = self.innerHeight - 80;\r
+ wWidth = self.innerWidth - 18;\r
+ } else {\r
+ wHeight = document.body.clientHeight - 80;\r
+ wWidth = document.body.clientWidth - 18;\r
+ }\r
+\r
+ document.getElementById('frmData').style.height = Math.abs(wHeight) + 'px';\r
+ document.getElementById('frmData').style.width = Math.abs(wWidth) + 'px';\r
+}\r