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