diff options
author | John McLear <john@mclear.co.uk> | 2014-12-09 16:16:19 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2014-12-09 16:16:19 +0000 |
commit | fccfc3bd417c574d52ec14c30922f32d5e883004 (patch) | |
tree | 0ad01f8da11ba763ba56318201450587bdc48da3 | |
parent | 3a2669b70488d26d2fbd9e0b20b8801fb8d7d8a5 (diff) | |
download | etherpad-lite-fccfc3bd417c574d52ec14c30922f32d5e883004.zip |
docs
-rw-r--r-- | doc/api/hooks_server-side.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/api/hooks_server-side.md b/doc/api/hooks_server-side.md index 69f5ab5c..251cbf11 100644 --- a/doc/api/hooks_server-side.md +++ b/doc/api/hooks_server-side.md @@ -298,6 +298,24 @@ exports.exportFileName = function(hook, padId, callback){ } ``` +## exportHtmlAdditionalTags +Called from src/node/utils/ExportHtml.js + +Things in context: + +1. Pad object + +This hook will allow a plug-in developer to include more properties and attributes to support during HTML Export. An Array should be returned. + +Example: +``` +// Add the props to be supported in export +exports.exportHtmlAdditionalTags = function(hook, pad, cb){ + var padId = pad.id; + cb(["massive","jugs"]); +}; + + ## userLeave Called from src/node/handler/PadMessageHandler.js |