1 function saveContent() {
\r
2 var html = document.getElementById("frmData").contentWindow.document.body.innerHTML;
\r
5 tinyMCEPopup.close();
\r
9 tinyMCEPopup.execCommand('mcePasteWord', false, html);
\r
10 tinyMCEPopup.close();
\r
13 function onLoadInit() {
\r
14 tinyMCEPopup.resizeToInnerSize();
\r
16 // Fix for endless reloading in FF
\r
17 window.setTimeout('createIFrame();', 10);
\r
20 function createIFrame() {
\r
21 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
24 var wHeight=0, wWidth=0, owHeight=0, owWidth=0;
\r
26 function initIframe(doc) {
\r
27 var dir = tinyMCE.selectedInstance.settings['directionality'];
\r
32 function resizeInputs() {
\r
33 if (!tinyMCE.isMSIE) {
\r
34 wHeight = self.innerHeight - 80;
\r
35 wWidth = self.innerWidth - 18;
\r
37 wHeight = document.body.clientHeight - 80;
\r
38 wWidth = document.body.clientWidth - 18;
\r
41 var elm = document.getElementById('frmData');
\r
43 elm.style.height = Math.abs(wHeight) + 'px';
\r
44 elm.style.width = Math.abs(wWidth) + 'px';
\r