From 55d685ab05aa0e132b95af507b0e75f3b40022de Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Tue, 18 Jul 2017 17:35:14 +1000 Subject: [PATCH] feat(ui/save-html): allow scripts to add things before save --- src/ui/save-html.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/save-html.js b/src/ui/save-html.js index 28af8a2b05..c1043d6f24 100644 --- a/src/ui/save-html.js +++ b/src/ui/save-html.js @@ -52,6 +52,7 @@ function cleanup(rootEl) { metaGenerator.content = "ReSpec " + window.respecVersion || "Developer Channel"; head.insertBefore(metaGenerator, head.lastChild); + pub("beforesave", rootEl); } // Clean up markup to overcome bugs in beautifier