mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 10:56:16 -04:00
docs
This commit is contained in:
parent
3b6c8dce2f
commit
94d49aed8e
1 changed files with 18 additions and 0 deletions
|
@ -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
|
## stylesForExport
|
||||||
Called from: src/node/utils/ExportHtml.js
|
Called from: src/node/utils/ExportHtml.js
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue