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