src/crypto.c: possible fix for memory leak related
[citadel.git] / webcit / tiny_mce / plugins / paste / jscripts / pastetext.js
1 function saveContent() {\r
2         if (document.forms[0].htmlSource.value == '') {\r
3                 tinyMCEPopup.close();\r
4                 return false;\r
5         }\r
6 \r
7         tinyMCEPopup.execCommand('mcePasteText', false, {\r
8                 html : document.forms[0].htmlSource.value,\r
9                 linebreaks : document.forms[0].linebreaks.checked\r
10         });\r
11 \r
12         tinyMCEPopup.close();\r
13 }\r
14 \r
15 function onLoadInit() {\r
16         tinyMCEPopup.resizeToInnerSize();\r
17 \r
18         resizeInputs();\r
19 }\r
20 \r
21 var wHeight=0, wWidth=0, owHeight=0, owWidth=0;\r
22 \r
23 function resizeInputs() {\r
24         if (!tinyMCE.isMSIE) {\r
25                 wHeight = self.innerHeight-80;\r
26                 wWidth = self.innerWidth-17;\r
27         } else {\r
28                 wHeight = document.body.clientHeight-80;\r
29                 wWidth = document.body.clientWidth-17;\r
30         }\r
31 \r
32         document.forms[0].htmlSource.style.height = Math.abs(wHeight) + 'px';\r
33         document.forms[0].htmlSource.style.width  = Math.abs(wWidth) + 'px';\r
34 }\r