tinyMCE.init({ // General options language : 'et', mode : "specific_textareas", editor_selector : "mceEditor", theme : "advanced", //plugins : "safari,,,emotions,iespell,inlinepopups,,contextmenu,paste,directionality,,imagemanager,filemanager", //plugins : "advimage,advlink,media,template,fullscreen", plugins : 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras', // Theme options theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent", theme_advanced_buttons2 : "link,unlink,|,image,|,code,|,fullscreen", theme_advanced_buttons3 : "", theme_advanced_buttons4 : "", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", // Drop lists for link/image/media/template dialogs external_image_list_url : "system/image_list.php" }); // Highslide initialization hs.graphicsDir = 'system/highslide/graphics/'; hs.align = 'center'; hs.transitions = ['expand', 'crossfade']; hs.outlineType = 'rounded-white'; hs.fadeInOut = true; hs.dimmingOpacity = 0.75; var phpTime = 1328771378; var startTimer = new Date(); var startTime = startTimer.getTime() / 1000; function linkTime(){ var curTimer = new Date(); var curTime = curTimer.getTime() / 1000; return parseInt(phpTime + (curTime - startTime)); } function selectAdminPanel(id){ var tabCount = 4; for(i = 0; i < tabCount; i++){document.getElementById('adminPanel' + i).style.display = 'none';} for(i = 0; i < tabCount; i++){document.getElementById('adminTabButton' + i).disabled = false;} document.getElementById('adminPanel' + id).style.display = 'block'; document.getElementById('adminTabButton' + id).disabled = true; } function validatePageEdit(){ if(document.getElementById('menuName').value.length <= 1){ alert("Menuu nimi peab olema pikem!"); return false; } return true; } function confirmRemove(item, name){ var agree = confirm("Kas soovid kustutada " + item + " '" + name + "'?"); if (agree) return true ; else return false ; }