From 3b6c8dce2fce0a162f0008cef4a9018751781d82 Mon Sep 17 00:00:00 2001 From: John McLear Date: Wed, 4 Nov 2020 15:04:36 +0000 Subject: [PATCH] hook, needs docs --- src/node/utils/ExportHtml.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/node/utils/ExportHtml.js b/src/node/utils/ExportHtml.js index 2c5a2c213..665e3d7eb 100644 --- a/src/node/utils/ExportHtml.js +++ b/src/node/utils/ExportHtml.js @@ -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),