Add old tiddler to th-saving-tiddler hook

Addresses https://github.com/Jermolene/TiddlyWiki5/pull/4434#issuecomment-645939182
This commit is contained in:
jeremy@jermolene.com
2020-06-18 11:49:59 +01:00
parent 9a479a95ad
commit f760a2fa79
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -320,7 +320,7 @@ NavigatorWidget.prototype.handleSaveTiddlerEvent = function(event) {
"draft.title": undefined,
"draft.of": undefined
},this.wiki.getModificationFields());
newTiddler = $tw.hooks.invokeHook("th-saving-tiddler",newTiddler);
newTiddler = $tw.hooks.invokeHook("th-saving-tiddler",newTiddler,tiddler);
this.wiki.addTiddler(newTiddler);
// If enabled, relink references to renamed tiddler
var shouldRelink = this.getAttribute("relinkOnRename","no").toLowerCase().trim() === "yes";