1 function saveContent() {
2 if (document.forms[0].htmlSource.value == '') {
7 tinyMCEPopup.execCommand('mcePasteText', false, {
8 html : document.forms[0].htmlSource.value,
9 linebreaks : document.forms[0].linebreaks.checked
15 function onLoadInit() {
16 tinyMCEPopup.resizeToInnerSize();
18 // Remove Gecko spellchecking
20 document.body.spellcheck = tinyMCE.getParam("gecko_spellcheck");
25 var wHeight=0, wWidth=0, owHeight=0, owWidth=0;
27 function resizeInputs() {
28 if (!tinyMCE.isMSIE) {
29 wHeight = self.innerHeight-80;
30 wWidth = self.innerWidth-17;
32 wHeight = document.body.clientHeight-80;
33 wWidth = document.body.clientWidth-17;
36 document.forms[0].htmlSource.style.height = Math.abs(wHeight) + 'px';
37 document.forms[0].htmlSource.style.width = Math.abs(wWidth) + 'px';