1 tinyMCEPopup.requireLangPack();
\r
2 tinyMCEPopup.onInit.add(onLoadInit);
\r
4 function saveContent() {
\r
5 tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value);
\r
6 tinyMCEPopup.close();
\r
9 function onLoadInit() {
\r
10 tinyMCEPopup.resizeToInnerSize();
\r
12 // Remove Gecko spellchecking
\r
13 if (tinymce.isGecko)
\r
14 document.body.spellcheck = tinyMCEPopup.editor.getParam("gecko_spellcheck");
\r
16 document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent();
\r
18 if (tinyMCEPopup.editor.getParam("theme_advanced_source_editor_wrap", true)) {
\r
20 document.getElementById('wraped').checked = true;
\r
26 function setWrap(val) {
\r
27 var v, n, s = document.getElementById('htmlSource');
\r
31 if (!tinymce.isIE) {
\r
33 n = s.cloneNode(false);
\r
34 n.setAttribute("wrap", val);
\r
35 s.parentNode.replaceChild(n, s);
\r
40 function toggleWordWrap(elm) {
\r
47 var wHeight=0, wWidth=0, owHeight=0, owWidth=0;
\r
49 function resizeInputs() {
\r
50 var el = document.getElementById('htmlSource');
\r
52 if (!tinymce.isIE) {
\r
53 wHeight = self.innerHeight - 65;
\r
54 wWidth = self.innerWidth - 16;
\r
56 wHeight = document.body.clientHeight - 70;
\r
57 wWidth = document.body.clientWidth - 16;
\r
60 el.style.height = Math.abs(wHeight) + 'px';
\r
61 el.style.width = Math.abs(wWidth) + 'px';
\r