1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Create Hook_th-make-tiddler-path.tid (#5274)

Documentation for the hook
This commit is contained in:
jed 2020-12-14 20:20:29 +01:00 committed by GitHub
parent 3c3cd4673e
commit e046d5ad76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,14 @@
tags: HookMechanism
title: Hook: th-make-tiddler-path
type: text/vnd.tiddlywiki
This hook lets a plugin inspect or modify the tiddler file path during the saving process.
Hook function parameters:
* ``currentPath``: The path the tiddler file will be saved to.
* ``originalPath``: The original tiddler file path unmodified by any hooks.
Return value:
The path to use for saving the tiddler file.