bgneal@45: tinyMCEPopup.requireLangPack(); bgneal@45: bgneal@45: function saveContent() { bgneal@45: if (document.forms[0].htmlSource.value == '') { bgneal@45: tinyMCEPopup.close(); bgneal@45: return false; bgneal@45: } bgneal@45: bgneal@45: tinyMCEPopup.execCommand('mcePasteText', false, { bgneal@45: html : document.forms[0].htmlSource.value, bgneal@45: linebreaks : document.forms[0].linebreaks.checked bgneal@45: }); bgneal@45: bgneal@45: tinyMCEPopup.close(); bgneal@45: } bgneal@45: bgneal@45: function onLoadInit() { bgneal@45: tinyMCEPopup.resizeToInnerSize(); bgneal@45: bgneal@45: // Remove Gecko spellchecking bgneal@45: if (tinymce.isGecko) bgneal@45: document.body.spellcheck = tinyMCEPopup.getParam("gecko_spellcheck"); bgneal@45: bgneal@45: resizeInputs(); bgneal@45: } bgneal@45: bgneal@45: var wHeight=0, wWidth=0, owHeight=0, owWidth=0; bgneal@45: bgneal@45: function resizeInputs() { bgneal@45: if (!tinymce.isIE) { bgneal@45: wHeight = self.innerHeight-80; bgneal@45: wWidth = self.innerWidth-17; bgneal@45: } else { bgneal@45: wHeight = document.body.clientHeight-80; bgneal@45: wWidth = document.body.clientWidth-17; bgneal@45: } bgneal@45: bgneal@45: document.forms[0].htmlSource.style.height = Math.abs(wHeight) + 'px'; bgneal@45: document.forms[0].htmlSource.style.width = Math.abs(wWidth) + 'px'; bgneal@45: } bgneal@45: bgneal@45: tinyMCEPopup.onInit.add(onLoadInit);