final html export hook
parent
2e2dd688e9
commit
17ce67d936
|
@ -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 this is a html export, we can send this from here directly
|
||||||
if(type == "html")
|
if(type == "html")
|
||||||
{
|
{
|
||||||
|
// 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);
|
res.send(html);
|
||||||
callback("stop");
|
callback("stop");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else //write the html export to a file
|
else //write the html export to a file
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue