mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
HTML export: Move padId
to context object property
This commit is contained in:
parent
f6aed0c9cb
commit
68a91f5e24
2 changed files with 9 additions and 10 deletions
|
@ -498,10 +498,9 @@ exports.getPadHTMLDocument = async function (padId, revNum)
|
|||
|
||||
let html = await getPadHTML(pad, revNum);
|
||||
|
||||
let exportHTMLAdditionalContent = await hooks.aCallAll("exportHTMLAdditionalContent", padId);
|
||||
exportHTMLAdditionalContent.forEach(function(hookHtml){
|
||||
for (const hookHtml of await hooks.aCallAll("exportHTMLAdditionalContent", {padId}) {
|
||||
html += hookHtml;
|
||||
});
|
||||
}
|
||||
|
||||
return eejs.require("ep_etherpad-lite/templates/export_html.html", {
|
||||
body: html,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue