hook, needs docs

export-html-hooks
John McLear 2020-11-04 15:04:36 +00:00
parent 91268e14b7
commit 3b6c8dce2f
1 changed files with 5 additions and 0 deletions

View File

@ -498,6 +498,11 @@ exports.getPadHTMLDocument = async function (padId, revNum)
let html = await getPadHTML(pad, revNum); let html = await getPadHTML(pad, revNum);
let exportHTMLAdditionalContent = await hooks.aCallAll("exportHTMLAdditionalContent", padId);
exportHTMLAdditionalContent.forEach(function(hookHtml){
html += hookHtml;
});
return eejs.require("ep_etherpad-lite/templates/export_html.html", { return eejs.require("ep_etherpad-lite/templates/export_html.html", {
body: html, body: html,
padId: Security.escapeHTML(padId), padId: Security.escapeHTML(padId),