mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 09:56:15 -04:00
pluginfw: Hook to include additional body in HTML exports (#4469)
* hook, needs docs * docs
This commit is contained in:
parent
3fa58efede
commit
881d8b8d95
2 changed files with 23 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue