hook, needs docs

This commit is contained in:
John McLear 2020-11-04 15:04:36 +00:00
parent 91268e14b7
commit 3b6c8dce2f

View file

@ -498,6 +498,11 @@ exports.getPadHTMLDocument = async function (padId, 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", {
body: html,
padId: Security.escapeHTML(padId),