mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-11-28 14:01:06 +01:00
docs: Document the import server-side hook
This commit is contained in:
parent
cc4772a99e
commit
edf99dc811
@ -807,6 +807,20 @@ Example:
|
||||
exports.exportEtherpadAdditionalContent = () => ['comments'];
|
||||
```
|
||||
|
||||
## `import`
|
||||
|
||||
Called from: `src/node/handler/ImportHandler.js`
|
||||
|
||||
Called when a user submits a document for import, before the document is
|
||||
converted to HTML. The hook function should return `undefined` (or an empty
|
||||
list) if it did NOT convert convert the document to HTML.
|
||||
|
||||
Context properties:
|
||||
|
||||
* `destFile`: The destination HTML filename.
|
||||
* `fileEnding`: The lower-cased filename extension from `srcFile`.
|
||||
* `srcFile`: The document to convert.
|
||||
|
||||
## `userJoin`
|
||||
|
||||
Called from: `src/node/handler/PadMessageHandler.js`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user