1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-06 02:37:14 +00:00

Merge 94bd9f2545bcfb7979f8ae94047e9e6a8257f6ce into 2cb5f57c69c94d47f447246edfa49e8519743ee2

This commit is contained in:
Adam Sherwood 2025-02-22 07:15:25 +00:00 committed by GitHub
commit 829220c3cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -413,6 +413,9 @@ NavigatorWidget.prototype.handleCancelTiddlerEvent = function(event) {
// If a draft of the target tiddler already exists then it is reused
NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) {
event = $tw.hooks.invokeHook("th-new-tiddler", event);
if(!event) {
return false;
}
// Get the story details
var storyList = this.getStoryList(),
templateTiddler, additionalFields, title, draftTitle, existingTiddler,