bgneal@312: tinyMCEPopup.requireLangPack(); bgneal@312: bgneal@312: function init() { bgneal@312: var ed, tcont; bgneal@312: bgneal@312: tinyMCEPopup.resizeToInnerSize(); bgneal@312: ed = tinyMCEPopup.editor; bgneal@312: bgneal@312: // Give FF some time bgneal@312: window.setTimeout(insertHelpIFrame, 10); bgneal@312: bgneal@312: tcont = document.getElementById('plugintablecontainer'); bgneal@312: document.getElementById('plugins_tab').style.display = 'none'; bgneal@312: bgneal@312: var html = ""; bgneal@312: html += ''; bgneal@312: html += ''; bgneal@312: html += ''; bgneal@312: html += ''; bgneal@312: html += ''; bgneal@312: html += ''; bgneal@312: html += ''; bgneal@312: html += ''; bgneal@312: html += ''; bgneal@312: bgneal@312: tinymce.each(ed.plugins, function(p, n) { bgneal@312: var info; bgneal@312: bgneal@312: if (!p.getInfo) bgneal@312: return; bgneal@312: bgneal@312: html += ''; bgneal@312: bgneal@312: info = p.getInfo(); bgneal@312: bgneal@312: if (info.infourl != null && info.infourl != '') bgneal@312: html += ''; bgneal@312: else bgneal@312: html += ''; bgneal@312: bgneal@312: if (info.authorurl != null && info.authorurl != '') bgneal@312: html += ''; bgneal@312: else bgneal@312: html += ''; bgneal@312: bgneal@312: html += ''; bgneal@312: html += ''; bgneal@312: bgneal@312: document.getElementById('plugins_tab').style.display = ''; bgneal@312: bgneal@312: }); bgneal@312: bgneal@312: html += ''; bgneal@312: html += '
' + ed.getLang('advanced_dlg.about_plugin') + '' + ed.getLang('advanced_dlg.about_author') + '' + ed.getLang('advanced_dlg.about_version') + '
' + info.longname + '' + info.longname + '' + info.author + '' + info.author + '' + info.version + '
'; bgneal@312: bgneal@312: tcont.innerHTML = html; bgneal@312: bgneal@312: tinyMCEPopup.dom.get('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion; bgneal@312: tinyMCEPopup.dom.get('date').innerHTML = tinymce.releaseDate; bgneal@312: } bgneal@312: bgneal@312: function insertHelpIFrame() { bgneal@312: var html; bgneal@312: bgneal@312: if (tinyMCEPopup.getParam('docs_url')) { bgneal@312: html = ''; bgneal@312: document.getElementById('iframecontainer').innerHTML = html; bgneal@312: document.getElementById('help_tab').style.display = 'block'; bgneal@312: } bgneal@312: } bgneal@312: bgneal@312: tinyMCEPopup.onInit.add(init);