pluginfw: Hook to include additional body in HTML exports (#4469)

* hook, needs docs

* docs
This commit is contained in:
John McLear 2020-11-06 13:48:59 +00:00 committed by GitHub
parent 3fa58efede
commit 881d8b8d95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View file

@ -661,6 +661,24 @@ function _analyzeLine(alineAttrs, apool) {
}
```
## 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
Example:
```
exports.exportHTMLAdditionalContent = async (hookName, context) => {
let padId = context;
return "I am groot in " + padId;
}
```
## stylesForExport
Called from: src/node/utils/ExportHtml.js