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