mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06: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
|
@ -661,22 +661,22 @@ function _analyzeLine(alineAttrs, apool) {
|
|||
}
|
||||
```
|
||||
|
||||
## exportHTMLAdditionalContent
|
||||
## exportHTMLAdditionalContent
|
||||
Called from: src/node/utils/ExportHtml.js
|
||||
|
||||
Things in context:
|
||||
|
||||
1. padId
|
||||
|
||||
This hook will allow a plug-in developer to include additional HTML content in the Body of the exported HTML
|
||||
This hook will allow a plug-in developer to include additional HTML content in
|
||||
the body of the exported HTML.
|
||||
|
||||
Example:
|
||||
```
|
||||
exports.exportHTMLAdditionalContent = async (hookName, context) => {
|
||||
let padId = context;
|
||||
return "I am groot in " + padId;
|
||||
}
|
||||
|
||||
```
|
||||
exports.exportHTMLAdditionalContent = async (hookName, {padId}) => {
|
||||
return 'I am groot in ' + padId;
|
||||
};
|
||||
```
|
||||
|
||||
## stylesForExport
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue