1 tinyMCEPopup.requireLangPack();
\r
2 tinyMCEPopup.onInit.add(onLoadInit);
\r
4 function saveContent() {
\r
5 tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value, {source_view : true});
\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({source_view : true});
\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 function resizeInputs() {
\r
48 var vp = tinyMCEPopup.dom.getViewPort(window), el;
\r
50 el = document.getElementById('htmlSource');
\r
53 el.style.width = (vp.w - 20) + 'px';
\r
54 el.style.height = (vp.h - 65) + 'px';
\r