1 tinyMCEPopup.requireLangPack();
3 function saveContent() {
4 if (document.forms[0].htmlSource.value == '') {
9 tinyMCEPopup.execCommand('mcePasteText', false, {
10 html : document.forms[0].htmlSource.value,
11 linebreaks : document.forms[0].linebreaks.checked
17 function onLoadInit() {
18 tinyMCEPopup.resizeToInnerSize();
20 // Remove Gecko spellchecking
22 document.body.spellcheck = tinyMCEPopup.getParam("gecko_spellcheck");
27 var wHeight=0, wWidth=0, owHeight=0, owWidth=0;
29 function resizeInputs() {
31 wHeight = self.innerHeight-80;
32 wWidth = self.innerWidth-17;
34 wHeight = document.body.clientHeight-80;
35 wWidth = document.body.clientWidth-17;
38 document.forms[0].htmlSource.style.height = Math.abs(wHeight) + 'px';
39 document.forms[0].htmlSource.style.width = Math.abs(wWidth) + 'px';
42 tinyMCEPopup.onInit.add(onLoadInit);