mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
docs for new hook
This commit is contained in:
parent
1f7fcd54f1
commit
a8d9a3868d
1 changed files with 16 additions and 0 deletions
|
@ -247,3 +247,19 @@ Things in context:
|
||||||
|
|
||||||
This hook will allow a plug-in developer to re-write each line when exporting to HTML.
|
This hook will allow a plug-in developer to re-write each line when exporting to HTML.
|
||||||
|
|
||||||
|
## exportFileName
|
||||||
|
Called from src/node/handler/ExportHandler.js
|
||||||
|
|
||||||
|
Things in context:
|
||||||
|
|
||||||
|
1. padId
|
||||||
|
|
||||||
|
This hook will allow a plug-in developer to modify the file name of an exported pad. This is useful if you want to export a pad under another name and/or hide the padId under export. Note that the doctype or file extension cannot be modified for security reasons.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
exports.exportFileName = function(hook, padId){
|
||||||
|
return "newFileName"+padId;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue