Merge pull request #2443 from ether/exporthtmlendhook

final html export hook
pull/2445/head
John McLear 2015-01-06 17:40:25 +00:00
commit 5dd64dfc77
1 changed files with 6 additions and 2 deletions

View File

@ -158,8 +158,12 @@ exports.doExport = function(req, res, padId, type)
//if this is a html export, we can send this from here directly
if(type == "html")
{
res.send(html);
callback("stop");
// do any final changes the plugin might want to make cake
hooks.aCallFirst("exportHTMLSend", html, function(err, newHTML){
if(newHTML.length) html = newHTML;
res.send(html);
callback("stop");
});
}
else //write the html export to a file
{