equal
deleted
inserted
replaced
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 // Remove Gecko spellchecking |
|
19 if (tinyMCE.isGecko) |
|
20 document.body.spellcheck = tinyMCE.getParam("gecko_spellcheck"); |
|
21 |
|
22 resizeInputs(); |
|
23 } |
|
24 |
|
25 var wHeight=0, wWidth=0, owHeight=0, owWidth=0; |
|
26 |
|
27 function resizeInputs() { |
|
28 if (!tinyMCE.isMSIE) { |
|
29 wHeight = self.innerHeight-80; |
|
30 wWidth = self.innerWidth-17; |
|
31 } else { |
|
32 wHeight = document.body.clientHeight-80; |
|
33 wWidth = document.body.clientWidth-17; |
|
34 } |
|
35 |
|
36 document.forms[0].htmlSource.style.height = Math.abs(wHeight) + 'px'; |
|
37 document.forms[0].htmlSource.style.width = Math.abs(wWidth) + 'px'; |
|
38 } |
|